X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions.php;h=7ed3d4943421a8f3f4068b01758fdb77650e5b57;hb=5d0d05a99b39c75b54cd6b02c6093cf71532cd83;hp=b5185feee6938b738f1537dca98ea049f31ffe52;hpb=d016e24dd4686f613a17733b96bc28fac936a4ac;p=mailer.git diff --git a/inc/extensions.php b/inc/extensions.php index b5185feee6..7ed3d49434 100644 --- a/inc/extensions.php +++ b/inc/extensions.php @@ -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__);