mirror of
https://github.com/vrana/adminer.git
synced 2025-08-06 22:56:46 +02:00
Notices: Add helper for reset() with expression
This commit is contained in:
@@ -34,7 +34,7 @@ if (isset($_GET["sqlite"])) {
|
||||
function quote($string) {
|
||||
return (is_utf8($string)
|
||||
? "'" . $this->link->escapeString($string) . "'"
|
||||
: "x'" . reset(unpack('H*', $string)) . "'"
|
||||
: "x'" . first(unpack('H*', $string)) . "'"
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user