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

This commit is contained in:
dMetzger committed 2012-08-10 10:02:23 +00:00
1 parent 4a53e26276
commit 5cf21dfa51
1 file changed
+4 -1
@@ -157,9 +157,12 @@ class Blockcustomerprivacy extends Module
{ {
if (!$this->active) if (!$this->active)
return; return;
$message = Configuration::get('CUSTPRIV_MESSAGE', $this->context->language->id);
if (empty($message))
return;
$this->smarty->assign(array( $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.') 'error_message' => $this->l('Please agree with the customer data privacy by ticking the checkbox below.')
)); ));
return $this->display(__FILE__, 'blockcustomerprivacy.tpl'); return $this->display(__FILE__, 'blockcustomerprivacy.tpl');