From 3643fa377c06608fbc1374ab141adea39d5f22f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti=20H=C3=A4tinen?= Date: Tue, 3 Mar 2020 11:50:01 +0200 Subject: [PATCH] Update ultimate_ga.php Fixed bug where $user_level -variable setting is not actually checked and you get an Notice message ( ! ) Notice: Use of undefined constant user_level - assumed 'user_level' in plugins/ultimate-google-analytics/ultimate_ga.php on line 524 --- ultimate_ga.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ultimate_ga.php b/ultimate_ga.php index 8253c17..06a47f1 100644 --- a/ultimate_ga.php +++ b/ultimate_ga.php @@ -521,7 +521,7 @@ function uga_options() { function uga_track_user() { global $user_level; uga_debug('Start uga_track_user'); - if (!user_level) { + if (!$user_level) { // user nog logged on -> track uga_debug('User not logged on'); $result = true; @@ -974,4 +974,4 @@ function uga_shutdown() { uga_debug('Adding shutdown action hook for debugging and notice if wp_footer is hooked'); add_action('shutdown', 'uga_shutdown'); -?> \ No newline at end of file +?>