From b64098f3f27bded3eaed2111ffccdb6b4b3c844f Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Wed, 9 Jan 2013 12:06:00 +0100 Subject: [PATCH] //small fix part 2 --- controllers/admin/AdminModulesController.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/controllers/admin/AdminModulesController.php b/controllers/admin/AdminModulesController.php index af6cf3348..67d51e46e 100644 --- a/controllers/admin/AdminModulesController.php +++ b/controllers/admin/AdminModulesController.php @@ -537,11 +537,12 @@ class AdminModulesControllerCore extends AdminController { $module = Module::getInstanceByName(urldecode($name)); $this->errors[] = $this->l(sprintf("Module %s can't be upgraded : ", $module->displayName)).$full_report; + continue; } } // If Addons module, download and unzip it before installing it - if (!is_null($full_report) && !is_dir('../modules/'.$name.'/')) + if (!is_dir('../modules/'.$name.'/')) { $filesList = array( array('type' => 'addonsNative', 'file' => Module::CACHE_FILE_DEFAULT_COUNTRY_MODULES_LIST, 'loggedOnAddons' => 0), @@ -564,9 +565,7 @@ class AdminModulesControllerCore extends AdminController $this->extractArchive('../modules/'.$modaddons->name.'.zip', false); } } - } - // Check potential error if (!($module = Module::getInstanceByName(urldecode($name)))) $this->errors[] = $this->l('Module not found');