From: Roland Häder Date: Wed, 3 Jul 2013 09:38:31 +0000 (+0000) Subject: Fix for missing isValidSqlLink() when no database layer has been loaded. This functio... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e64f2bb51b24f86921ecb27f4afd7cb0a6e71ca3;p=mailer.git Fix for missing isValidSqlLink() when no database layer has been loaded. This function depends on the layer because the MySQLi extension uses objects and the (deprecated) MySQL extension resources --- diff --git a/inc/sql-functions.php b/inc/sql-functions.php index b0fa506517..9e82b02daf 100644 --- a/inc/sql-functions.php +++ b/inc/sql-functions.php @@ -510,7 +510,7 @@ function setSqlLink ($file, $line, $link) { $GLOBALS['__sql_link'] = $link; // Re-init cache - $GLOBALS['__is_sql_link_up'] = isValidSqlLink($link); + $GLOBALS['__is_sql_link_up'] = ((function_exists('isValidSqlLink')) && (isValidSqlLink($link))); } // Checks if the link is up