From bd0bb81f6920efdad66a52281e5f4016f90c3279 Mon Sep 17 00:00:00 2001 From: fSerny Date: Tue, 6 Mar 2012 16:26:43 +0000 Subject: [PATCH] [-] BO : Small fix on preactivation --- controllers/admin/AdminHomeController.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/controllers/admin/AdminHomeController.php b/controllers/admin/AdminHomeController.php index d2d2b77e9..66cf606d8 100644 --- a/controllers/admin/AdminHomeController.php +++ b/controllers/admin/AdminHomeController.php @@ -528,9 +528,10 @@ class AdminHomeControllerCore extends AdminController // Check if module is not already installed and configured $display = 0; - foreach ($partner->checkconfiguration->key as $key) - if (Configuration::get(pSQL((string)$key)) == '') - $display = 1; + if (file_exists('../config/xml/default_country_modules_list.xml') && filesize('../config/xml/default_country_modules_list.xml') > 10) + foreach ($partner->checkconfiguration->key as $key) + if (Configuration::get(pSQL((string)$key)) == '') + $display = 1; // Display the module if ($display == 1 && $count < 2)