From 5cf21dfa51d45c97b72197ec57879db18991aae7 Mon Sep 17 00:00:00 2001 From: dMetzger Date: Fri, 10 Aug 2012 10:02:23 +0000 Subject: [PATCH] // Does not display the blockcustomerprivacy when there is no text set --- modules/blockcustomerprivacy/blockcustomerprivacy.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/blockcustomerprivacy/blockcustomerprivacy.php b/modules/blockcustomerprivacy/blockcustomerprivacy.php index ebfb42fb4..3b5b0648b 100644 --- a/modules/blockcustomerprivacy/blockcustomerprivacy.php +++ b/modules/blockcustomerprivacy/blockcustomerprivacy.php @@ -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');