Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Report errors only

  • Loading branch information...
commit 850d1aa1303e6aee4481818f234a2735e694d776 1 parent ed85096
@vrana authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  adminer/include/functions.inc.php
View
2  adminer/include/functions.inc.php
@@ -227,7 +227,7 @@ function get_rows($query, $connection2 = null, $error = "<p class='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;
Please sign in to comment.
Something went wrong with that request. Please try again.