Fix : Test pg_escape and pg_unescape exist before executing them
This commit is contained in:
@@ -65,7 +65,9 @@ class YoutubeHelper
|
||||
if ($file) {
|
||||
$extra = serialize($extra);
|
||||
if($this->dbconn->getDBType() == "pgsql"){
|
||||
$extra = pg_escape_bytea($extra);
|
||||
if (function_exists("pg_escape_bytea")) {
|
||||
$extra = pg_escape_bytea($extra);
|
||||
}
|
||||
}
|
||||
$data = [
|
||||
'uid' => $this->user,
|
||||
|
||||
Reference in New Issue
Block a user