From 2f9e3ddf531136383d536e5d739a75283bfe9b3f Mon Sep 17 00:00:00 2001 From: "maenz.torsten" Date: Fri, 27 Aug 2021 09:45:07 +0200 Subject: [PATCH] * add token check only if tacking method php --- system/includes/functions.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index f3e7bbd..e4973aa 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -2035,7 +2035,7 @@ function matomo($title) return; } - if(empty($matomoURL) || empty($matomoTracking) || empty($matomoID) || empty($matomoToken)) + if(empty($matomoURL) || empty($matomoTracking) || empty($matomoID)) { error_log("Please set all Matomo configuration values", 0); return; @@ -2064,6 +2064,12 @@ EOF; } else if($matomoTracking == 'php') { + if(empty($matomoToken)) + { + error_log("Please set Matomo Token for PHP Tracking Method", 0); + return; + } + $url = 'system/plugins/matomo/MatomoTracker.php'; require_once ($url);