mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-09 01:12:33 +01:00
Fix phan warnings
This commit is contained in:
@@ -514,7 +514,7 @@ class DoliDBPgsql extends DoliDB
|
||||
*/
|
||||
public function query($query, $usesavepoint = 0, $type = 'auto', $result_mode = 0)
|
||||
{
|
||||
global $conf, $dolibarr_main_db_readonly;
|
||||
global $dolibarr_main_db_readonly;
|
||||
|
||||
$query = trim($query);
|
||||
|
||||
@@ -934,7 +934,7 @@ class DoliDBPgsql extends DoliDB
|
||||
* @param string $charset Charset used to store data
|
||||
* @param string $collation Charset used to sort data
|
||||
* @param string $owner Username of database owner
|
||||
* @return false|resource resource defined if OK, null if KO
|
||||
* @return false|resource Resource defined if OK, null if KO
|
||||
*/
|
||||
public function DDLCreateDb($database, $charset = '', $collation = '', $owner = '')
|
||||
{
|
||||
@@ -951,8 +951,10 @@ class DoliDBPgsql extends DoliDB
|
||||
|
||||
// NOTE: Do not use ' around the database name
|
||||
$sql = "CREATE DATABASE ".$this->escape($database)." OWNER '".$this->escape($owner)."' ENCODING '".$this->escape($charset)."'";
|
||||
|
||||
dol_syslog($sql, LOG_DEBUG);
|
||||
$ret = $this->query($sql);
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user