If connection2 is used error is checked against global connection anyway #11

Closed
wants to merge 1 commit into
from
@@ -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;