Permalink
Browse files

If connection2 is used error is checked against global connection anyway

  • Loading branch information...
1 parent fd7e8cb commit 28724ce5961d711899f6a45f17ff61f63aa858ec @mishak87 mishak87 committed Dec 16, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 adminer/include/functions.inc.php
View
2 adminer/include/functions.inc.php
@@ -295,7 +295,7 @@ function get_rows($query, $connection2 = null, $error = "<p class='error'>") {
while ($row = $result->fetch_assoc()) {
$return[] = $row;
}
- } elseif (!$result && $connection->error && $error && defined("PAGE_HEADER")) {
+ } elseif (!$result && $connection2->error && $error && defined("PAGE_HEADER")) {
echo $error . error() . "\n";
}
return $return;

0 comments on commit 28724ce

Please sign in to comment.