1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-05 22:27:24 +02:00

MySQLi: Avoid using PHP 8.1 method

This reverts 359fdf3.
This commit is contained in:
Jakub Vrana
2025-03-23 12:37:11 +01:00
parent f1a8bd9ef8
commit 1b59b10f62

View File

@@ -47,7 +47,11 @@ if (!defined('Adminer\DRIVER')) {
function result($query, $field = 0) {
$result = $this->query($query);
return ($result ? $result->fetch_column($field) : false);
if (!$result) {
return false;
}
$row = $result->fetch_array();
return ($row ? $row[$field] : false);
}
function quote($string) {