mirror of
https://github.com/vrana/adminer.git
synced 2026-06-16 14:42:43 +02:00
Ensure PHP 5.3 compatibility
This commit is contained in:
@@ -43,7 +43,10 @@ if (isset($_GET["pgsql"])) {
|
||||
}
|
||||
|
||||
function quote($string) {
|
||||
return pg_escape_literal($this->link, $string);
|
||||
return (function_exists('pg_escape_literal')
|
||||
? pg_escape_literal($this->link, $string) // available since PHP 5.4.4
|
||||
: "'" . pg_escape_string($this->link, $string) . "'"
|
||||
);
|
||||
}
|
||||
|
||||
function value($val, $field) {
|
||||
|
||||
Reference in New Issue
Block a user