Skip to content

Commit

Permalink
Report errors only in primary connection
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Dec 17, 2010
1 parent 9eced78 commit 0449351
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions adminer/include/editing.inc.php
Expand Up @@ -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 = "") {
Expand Down
2 changes: 1 addition & 1 deletion adminer/include/functions.inc.php
Expand Up @@ -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;
Expand Down

0 comments on commit 0449351

Please sign in to comment.