From 75a8462000713099c6abd7aa1e16c24d8507b7bb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= 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.2