MySQLi: Use fetch_column

This commit is contained in:
Jakub Vrana
2025-03-22 08:50:47 +01:00
parent 00b7056147
commit 359fdf3d07

View File

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