]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions.php
Rewritten (does this fix the nested error?)
[mailer.git] / inc / extensions.php
index b5185feee6938b738f1537dca98ea049f31ffe52..7ed3d4943421a8f3f4068b01758fdb77650e5b57 100644 (file)
@@ -380,7 +380,7 @@ function GET_EXT_VERSION ($ext_name) {
 
                // Count cache hits
                incrementConfigEntry('cache_hits');
-       } elseif (!is_object($GLOBALS['cache_instance'])) {
+       } elseif ((!isset($GLOBALS['cache_instance'])) || (!is_object($GLOBALS['cache_instance']))) {
                // Load from database
                $result = SQL_QUERY_ESC("SELECT ext_version FROM `{!_MYSQL_PREFIX!}_extensions` WHERE ext_name='%s' LIMIT 1",
                        array($ext_name), __FILE__, __LINE__);