From 99f279c3e8ab86afc8d7642e0d942febba28bbf2 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Wed, 17 Nov 2021 10:10:07 +0100 Subject: [PATCH] chargement script google --- core/core.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core.php b/core/core.php index 161c28d1..70b6b005 100644 --- a/core/core.php +++ b/core/core.php @@ -1172,8 +1172,8 @@ class common { * Affiche le script Google Analytics */ public function showAnalytics() { - if($code = $this->getData(['config', 'seo', 'analyticsId']) - AND $this->getInput('ZWII_COOKIE_CONSENT') === 'true') { + if( !empty($code = $this->getData(['config', 'seo', 'analyticsId'])) && + $this->getInput('ZWII_COOKIE_CONSENT') === 'true') { echo '