From 352fd581ac40f2d68bf2bbc3828564d62fe476e4 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Fri, 15 Oct 2010 13:40:36 +0200 Subject: [PATCH] Don't report no error --- 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 efa47981..1681ffc9 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -199,7 +199,7 @@ function get_rows($query, $connection2 = null, $error = "

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