Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Report errors only in primary connection

  • Loading branch information...
commit 0449351a60f7cdb869d0a4ea45e46b236054ab12 1 parent 9eced78
@vrana authored
View
1  adminer/include/editing.inc.php
@@ -2,6 +2,7 @@
/** Print select result
* @param Min_Result
* @param Min_DB connection to examine indexes
+* @param string base link for <th> fields
* @return null
*/
function select($result, $connection2 = null, $href = "") {
View
2  adminer/include/functions.inc.php
@@ -216,7 +216,7 @@ function get_rows($query, $connection2 = null, $error = "<p class='error'>") {
while ($row = $result->fetch_assoc()) {
$return[] = $row;
}
- } elseif (!$result && $error && defined("PAGE_HEADER")) {
+ } elseif ($connection->error && $error && defined("PAGE_HEADER")) {
echo $error . error() . "\n";
}
return $return;
Please sign in to comment.
Something went wrong with that request. Please try again.