1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-06 14:46:36 +02:00

Report errors only

This commit is contained in:
Jakub Vrana
2010-12-29 17:28:53 +01:00
parent ed85096367
commit 850d1aa130

View File

@@ -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;