From 8b68d4d9baee02adaa35fb64413fbc9ef14a7a3b Mon Sep 17 00:00:00 2001 From: quix0r Date: Sat, 29 Sep 2012 13:11:25 +0000 Subject: [PATCH] Better check --- inc/extensions-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5