PHP 8.1 Deprecated
Adapt for 8.1
This commit is contained in:
parent
bfa9dde763
commit
e93283ba65
8 changed files with 15 additions and 10 deletions
|
|
@ -846,7 +846,9 @@ class DatabaseCore
|
|||
|
||||
static function escape_string($p_string)
|
||||
{
|
||||
return pg_escape_string($p_string);
|
||||
static $cn=null;
|
||||
if ( $cn==null) $cn=new Database();
|
||||
return pg_escape_string($cn->db,$p_string);
|
||||
}
|
||||
|
||||
/**\brief wrapper for the function pg_close
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue