1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-07 15:16:44 +02:00

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) {
$result = $this->query($query);
if (!$result) {
return false;
}
$row = $result->fetch_array();
return $row[$field];
return ($result ? $result->fetch_column($field) : false);
}
function quote($string) {