X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmysql-connect.php;h=5ad12fcb5d8f163413c9f72ee902cc89cf5fe141;hp=446518563af4851587ea218b24a246efe7a9b225;hb=7297440d795390abd70ddc339b1a81d34f76c953;hpb=53e518016b97748e6554bd7aa324f4e6d92d3201 diff --git a/inc/mysql-connect.php b/inc/mysql-connect.php index 446518563a..5ad12fcb5d 100644 --- a/inc/mysql-connect.php +++ b/inc/mysql-connect.php @@ -57,6 +57,9 @@ foreach (array('request-functions', 'session-functions', 'config-functions', 'co // Set error handler set_error_handler('__errorHandler'); +// Init error handler +initErrorHandler(); + // Init request initRequest(); @@ -87,6 +90,9 @@ if ((!isInstalling()) && (isInstalled())) { // Is the link valid? if (SQL_IS_LINK_UP()) { + // Enable exit on error + enableExitOnError(); + // Is it a valid resource? if (SQL_SELECT_DB($GLOBALS['mysql']['dbase'], __FILE__, __LINE__) === true) { // This is required for extension 'optimize' to work