]> git.mxchange.org Git - mailer.git/commitdiff
Better check
authorRoland Häder <roland@mxchange.org>
Sat, 29 Sep 2012 13:11:25 +0000 (13:11 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 29 Sep 2012 13:11:25 +0000 (13:11 +0000)
inc/extensions-functions.php

index a76925cc71ac5ce2e1df78fe395bc152d4bf6f3e..6c07db542b0dfec763e9eefe7104352e7bc4bb17 100644 (file)
@@ -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