From eb9f5bb9375cdef03ca31d28f77771b613a2f73f Mon Sep 17 00:00:00 2001 From: sgiehl <stefan@piwik.org> Date: Tue, 6 Jan 2015 13:30:09 +0100 Subject: [PATCH] avoid possible notice if array key is not defined --- core/Tracker/PageUrl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Tracker/PageUrl.php b/core/Tracker/PageUrl.php index be1c31cf00..0e5da41ba4 100644 --- a/core/Tracker/PageUrl.php +++ b/core/Tracker/PageUrl.php @@ -110,7 +110,7 @@ class PageUrl public static function shouldRemoveURLFragmentFor($idSite) { $websiteAttributes = Cache::getCacheWebsiteAttributes($idSite); - return !$websiteAttributes['keep_url_fragment']; + return empty($websiteAttributes['keep_url_fragment']); } /** -- GitLab