Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

If connection2 is used error is checked against global connection anyway

  • Loading branch information...
commit 28724ce5961d711899f6a45f17ff61f63aa858ec 1 parent fd7e8cb
Michal Gebauer mishak87 authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  adminer/include/functions.inc.php
2  adminer/include/functions.inc.php
@@ -295,7 +295,7 @@ function get_rows($query, $connection2 = null, $error = "<p class='error'>") {
295 295 while ($row = $result->fetch_assoc()) {
296 296 $return[] = $row;
297 297 }
298   - } elseif (!$result && $connection->error && $error && defined("PAGE_HEADER")) {
  298 + } elseif (!$result && $connection2->error && $error && defined("PAGE_HEADER")) {
299 299 echo $error . error() . "\n";
300 300 }
301 301 return $return;

0 comments on commit 28724ce

Please sign in to comment.
Something went wrong with that request. Please try again.