Fix for #223
authorRoland Häder <roland@mxchange.org>
Tue, 31 Jul 2012 19:05:17 +0000 (19:05 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 31 Jul 2012 19:05:17 +0000 (19:05 +0000)
inc/loader/load-extension.php

index f68a0ab..9d2d351 100644 (file)
@@ -148,7 +148,13 @@ if (($GLOBALS['cache_instance']->loadCacheFile('extension')) && ($GLOBALS['cache
        // Load all entries
        while ($content = SQL_FETCHARRAY($result)) {
                // Load extension
-               loadExtension($content['ext_name'], 'test');
+               if (!loadExtension($content['ext_name'], 'test')) {
+                       // Didn't load so deactivate it
+                       doDeactivateExtension($content['ext_name'], true);
+
+                       // ... and skip it
+                       continue;
+               } // END - if
 
                // Get menu entry
                $content['ext_menu'] = convertBooleanToYesNo(ifModuleHasMenu($content['ext_name'], true));