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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user