// Does not display the blockcustomerprivacy when there is no text set

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16791 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-08-10 10:02:23 +00:00
parent 83d14fae1d
commit a09ed72ec0
@@ -157,9 +157,12 @@ class Blockcustomerprivacy extends Module
{
if (!$this->active)
return;
$message = Configuration::get('CUSTPRIV_MESSAGE', $this->context->language->id);
if (empty($message))
return;
$this->smarty->assign(array(
'privacy_message' => Configuration::get('CUSTPRIV_MESSAGE', $this->context->language->id),
'privacy_message' => $message,
'error_message' => $this->l('Please agree with the customer data privacy by ticking the checkbox below.')
));
return $this->display(__FILE__, 'blockcustomerprivacy.tpl');