mirror of
https://github.com/vrana/adminer.git
synced 2025-08-05 06:07:57 +02:00
@@ -47,7 +47,11 @@ if (!defined('Adminer\DRIVER')) {
|
|||||||
|
|
||||||
function result($query, $field = 0) {
|
function result($query, $field = 0) {
|
||||||
$result = $this->query($query);
|
$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) {
|
function quote($string) {
|
||||||
|
Reference in New Issue
Block a user