diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index 739a23d2c..8de6481b1 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;