Skip to content

Commit

Permalink
Report errors only
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Dec 29, 2010
1 parent ed85096 commit 850d1aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adminer/include/functions.inc.php
Expand Up @@ -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;
Expand Down

0 comments on commit 850d1aa

Please sign in to comment.