Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't report no error

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