1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-07 23:27:17 +02:00

MySQLi: Check for more results (fix #955)

This commit is contained in:
Jakub Vrana
2025-03-28 20:13:06 +01:00
parent 75c94cec6b
commit ff37ac1d35

View File

@@ -45,6 +45,10 @@ if (!defined('Adminer\DRIVER')) {
return $this->query("SET NAMES $charset");
}
function next_result() {
return self::more_results() && parent::next_result(); // triggers E_STRICT on PHP < 7.4 otherwise
}
function result($query, $field = 0) {
$result = $this->query($query);
if (!is_object($result)) {