From b3c8d71163717af9ec46066e3d263370439c4287 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Fri, 22 Oct 2010 21:27:38 +0200 Subject: [PATCH] Print data in only_errors mode (important for ALTER export) --- adminer/sql.inc.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/adminer/sql.inc.php b/adminer/sql.inc.php index 160b1323..459ecb28 100644 --- a/adminer/sql.inc.php +++ b/adminer/sql.inc.php @@ -101,7 +101,11 @@ if (!$error && $_POST) { if (!$_POST["only_errors"]) { echo "

" . lang('Query executed OK, %d row(s) affected.', $connection->affected_rows) . "$time\n"; } - } elseif (!$_POST["only_errors"]) { + } else { + if ($_POST["only_errors"]) { + echo $print; + $print = ""; + } select($result, $connection2); echo "

" . ($result->num_rows ? lang('%d row(s)', $result->num_rows) : "") . $time; if ($connection2 && preg_match("~^($space|\\()*SELECT\\b~isU", $q)) { @@ -152,8 +156,8 @@ echo "

" . (ini_bool("file_uploads") ? lang('File upload') . ':