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

Delete function moved to get_val

This commit is contained in:
Jakub Vrana
2025-03-28 23:00:47 +01:00
parent cec6db144f
commit 225b6671c7

View File

@@ -48,15 +48,6 @@ if (!defined('Adminer\DRIVER')) {
return self::more_results() && parent::next_result(); // triggers E_STRICT on PHP < 7.4 otherwise
}
function result($query, $field = 0) {
$result = $this->query($query);
if (!is_object($result)) {
return false;
}
$row = $result->fetch_array();
return ($row ? $row[$field] : false);
}
function quote(string $string): string {
return "'" . $this->escape_string($string) . "'";
}