diff --git a/include/database/PearDatabase.php b/include/database/PearDatabase.php index 218429d7b75910ae870f5b4fdd235b5504b59243..2a4cd1942af082dc29f431eefc81729ebdb79977 100644 --- a/include/database/PearDatabase.php +++ b/include/database/PearDatabase.php @@ -24,7 +24,7 @@ $logsqltm = LoggerManager::getLogger('SQLTIME'); // See function convertPS2Sql in PearDatabase below class PreparedQMark2SqlValue { // Constructor - function PreparedQMark2SqlValue($vals){ + function __construct($vals){ $this->ctr = 0; $this->vals = $vals; } @@ -838,7 +838,7 @@ class PearDatabase{ /** * Constructor */ - function PearDatabase($dbtype='',$host='',$dbname='',$username='',$passwd='') { + function __construct($dbtype='',$host='',$dbname='',$username='',$passwd='') { global $currentModule; $this->log = LoggerManager::getLogger('PearDatabase_'. $currentModule); $this->resetSettings($dbtype,$host,$dbname,$username,$passwd);