mirror of
https://github.com/vrana/adminer.git
synced 2026-01-17 04:52:57 +01:00
MySQLi: Use fetch_column
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user