From 850d1aa1303e6aee4481818f234a2735e694d776 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Wed, 29 Dec 2010 17:28:53 +0100 Subject: [PATCH] Report errors only --- adminer/include/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index 739a23d2..8de6481b 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -227,7 +227,7 @@ function get_rows($query, $connection2 = null, $error = "

") { while ($row = $result->fetch_assoc()) { $return[] = $row; } - } elseif ($connection->error && $error && defined("PAGE_HEADER")) { + } elseif (!$result && $connection->error && $error && defined("PAGE_HEADER")) { echo $error . error() . "\n"; } return $return;