Make the message look a bit nicer (output the message if we have it, instead of print_r'ing the whole result)

This commit is contained in:
james 2010-03-30 17:22:55 +00:00
parent 2f38386967
commit dcd9e825ea

View File

@ -191,6 +191,9 @@ case 'award_upload':
echo notice("{$fair['name']} server said: <pre>".join("\n", $data['notice'])."</pre>");
else if(is_array($data['message']))
echo notice("{$fair['name']} server said: <pre>".join("\n", $data['message'])."</pre>");
else if($data['message']) {
echo notice("{$fair['name']} server said: <pre>".$data['message']."</pre>");
}
else
echo notice("{$fair['name']} server said: <pre>".htmlspecialchars(print_r($data,true))."</pre>");
echo happy(i18n("Upload completed successfully"));