From dcd9e825ea56fa121f53428c39a2353f51b86a3e Mon Sep 17 00:00:00 2001 From: james Date: Tue, 30 Mar 2010 17:22:55 +0000 Subject: [PATCH] Make the message look a bit nicer (output the message if we have it, instead of print_r'ing the whole result) --- admin/award_upload.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/admin/award_upload.php b/admin/award_upload.php index 1e882bf..1d778e5 100644 --- a/admin/award_upload.php +++ b/admin/award_upload.php @@ -191,6 +191,9 @@ case 'award_upload': echo notice("{$fair['name']} server said:
".join("\n", $data['notice'])."
"); else if(is_array($data['message'])) echo notice("{$fair['name']} server said:
".join("\n", $data['message'])."
"); + else if($data['message']) { + echo notice("{$fair['name']} server said:
".$data['message']."
"); + } else echo notice("{$fair['name']} server said:
".htmlspecialchars(print_r($data,true))."
"); echo happy(i18n("Upload completed successfully"));