From b519556a629ce066e2e227c1a70865618cdb596a Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Thu, 19 Jul 2012 10:07:29 +0000 Subject: [PATCH] // Blocklayered: Fix bug with noindex git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16486 b9a71923-0436-4b27-9f14-aed3839534dd --- modules/blocklayered/blocklayered.php | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/modules/blocklayered/blocklayered.php b/modules/blocklayered/blocklayered.php index 97b417e9b..87ec05376 100644 --- a/modules/blocklayered/blocklayered.php +++ b/modules/blocklayered/blocklayered.php @@ -1325,11 +1325,14 @@ class BlockLayered extends Module default: if (in_array($type, $blacklist)) { - $smarty->assign('nobots', true); - $smarty->assign('nofollow', true); - return; + if (count($val)) + { + $smarty->assign('nobots', true); + $smarty->assign('nofollow', true); + return; + } } - if (count($val) > 1) + elseif (count($val) > 1) { $smarty->assign('nobots', true); $smarty->assign('nofollow', true); @@ -1557,7 +1560,7 @@ class BlockLayered extends Module '.$this->l('Indexes and caches').' '; - if (version_compare(_PS_VERSION_, '1.5', '<') &&!Configuration::get('PS_LAYERED_INDEXED') + if (version_compare(_PS_VERSION_, '1.5', '<') && !Configuration::get('PS_LAYERED_INDEXED') || version_compare(_PS_VERSION_, '1.5', '>') && !Configuration::getGlobalValue('PS_LAYERED_INDEXED')) $html .= '