From 9a6ec1fe825c04a5e8788459834009690412620d Mon Sep 17 00:00:00 2001 From: quix0r Date: Tue, 31 Jul 2012 19:05:17 +0000 Subject: [PATCH] Fix for #223 --- inc/loader/load-extension.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/inc/loader/load-extension.php b/inc/loader/load-extension.php index f68a0abfcb..9d2d351d83 100644 --- a/inc/loader/load-extension.php +++ b/inc/loader/load-extension.php @@ -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)); -- 2.39.5