Permalink
Browse files

Don't report no error

  • Loading branch information...
1 parent 4c562fd commit 352fd581ac40f2d68bf2bbc3828564d62fe476e4 @vrana committed Oct 15, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 352fd58

Please sign in to comment.