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('Indexing is in progress. Please do not leave this page').'
';
- 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 .= '