/** * @param string $error */ private static function debugMysqlError($error) { if (self::$showErrors && SJB_Settings::isLoaded() && SJB_Settings::getSettingByName('error_control_mode') == 'debug') { SJB_HelperFunctions::d($error); } self::$errors[] = $error; }