diff --git a/e107_handlers/e_db_legacy_trait.php b/e107_handlers/e_db_legacy_trait.php index 8a2c22874..6f6828a5a 100644 --- a/e107_handlers/e_db_legacy_trait.php +++ b/e107_handlers/e_db_legacy_trait.php @@ -157,4 +157,9 @@ $this->log($log_type, $log_remark, $log_query); } + public function db_SetErrorReporting($mode) + { + $this->setErrorReporting($mode); + } + } \ No newline at end of file diff --git a/e107_handlers/e_db_pdo_class.php b/e107_handlers/e_db_pdo_class.php index 5f1fb56b3..0cfa676a2 100644 --- a/e107_handlers/e_db_pdo_class.php +++ b/e107_handlers/e_db_pdo_class.php @@ -26,8 +26,8 @@ class e_db_pdo implements e_db /** @var PDO */ protected $mySQLaccess; public $mySQLresult; - public $mySQLrows; - public $mySQLerror = ''; // Error reporting mode - TRUE shows messages + protected $mySQLrows; + protected $mySQLerror = false; // Error reporting mode - TRUE shows messages protected $mySQLlastErrNum = 0; // Number of last error - now protected, use getLastErrorNumber() protected $mySQLlastErrText = ''; // Text of last error - now protected, use getLastErrorText() @@ -48,8 +48,8 @@ class e_db_pdo implements e_db public $total_results = false; // Total number of results - private $pdo = true; // using PDO or not. - private $pdoBind= false; + private $pdo = true; // using PDO or not. + private $pdoBind = false; /** @@ -1539,7 +1539,7 @@ class e_db_pdo implements e_db * @desc Enter description here... * @access private */ - function db_SetErrorReporting($mode) + function setErrorReporting($mode) { $this->mySQLerror = $mode; } diff --git a/e107_handlers/mysql_class.php b/e107_handlers/mysql_class.php index 1c02822d6..c893fcb4d 100644 --- a/e107_handlers/mysql_class.php +++ b/e107_handlers/mysql_class.php @@ -1765,7 +1765,7 @@ class e_db_mysql * @desc Enter description here... * @access private */ - function db_SetErrorReporting($mode) + public function db_SetErrorReporting($mode) { $this->mySQLerror = $mode; }