From 63f197213e2e1664399aaab8db4293a95ada0593 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Mon, 28 Mar 2011 00:56:48 +0200 Subject: [PATCH] Show only errors with file upload by default --- adminer/sql.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/adminer/sql.inc.php b/adminer/sql.inc.php index 6b5b86f9..83014769 100644 --- a/adminer/sql.inc.php +++ b/adminer/sql.inc.php @@ -175,7 +175,10 @@ if ($_POST) { } textarea("query", $q, 20); echo ($_POST ? "" : "\n"); -echo "

" . (ini_bool("file_uploads") ? lang('File upload') . ': (< ' . ini_get("upload_max_filesize") . 'B)' : lang('File uploads are disabled.')); // ignore post_max_size because it is for all form fields together and bytes computing would be necessary +echo "

" . (ini_bool("file_uploads") + ? lang('File upload') . ': (< ' . ini_get("upload_max_filesize") . 'B)' // ignore post_max_size because it is for all form fields together and bytes computing would be necessary + : lang('File uploads are disabled.') +); ?>