From 7cca16b35e0ef30b77946737926e5682d8660707 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 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13903 b9a71923-0436-4b27-9f14-aed3839534dd --- 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)