mirror of
https://github.com/vrana/adminer.git
synced 2025-08-11 17:14:07 +02:00
Report errors only in primary connection
This commit is contained in:
@@ -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 = "") {
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user