From: Roland Häder Date: Sat, 29 Sep 2012 13:11:25 +0000 (+0000) Subject: Better check X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=75a8462000713099c6abd7aa1e16c24d8507b7bb;p=mailer.git Better check --- diff --git a/inc/extensions-functions.php b/inc/extensions-functions.php index a76925cc71..6c07db542b 100644 --- a/inc/extensions-functions.php +++ b/inc/extensions-functions.php @@ -1537,7 +1537,7 @@ function initExtensionSqls ($force = false) { // Adds SQLs to the SQLs array but "assigns" it with current extension name function addExtensionSql ($sql) { // Is is the array there? - if (!is_array($GLOBALS['ext_sqls'][getCurrentExtensionName()][getCurrentExtensionVersion()])) { + if ((!isset($GLOBALS['ext_sqls'][getCurrentExtensionName()][getCurrentExtensionVersion()])) || (!is_array($GLOBALS['ext_sqls'][getCurrentExtensionName()][getCurrentExtensionVersion()]))) { // Init array $GLOBALS['ext_sqls'][getCurrentExtensionName()][getCurrentExtensionVersion()] = array(); } // END - if