Skip to content

Commit 9e040e3

Browse files
committed
Fix regression for user_id in BlizzardChecker
1 parent 31580b1 commit 9e040e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libraries/BlizzardChecker.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ public static function checkIfBlizzard() {
2626
}
2727

2828
public static function logIfBlizzard() {
29-
$user_id = (isset(Authentication::$user) ? Authentication::$user : null);
29+
$user_id = (
30+
isset(Authentication::$user) ? Authentication::$user->getId() : null
31+
);
3032
if (self::checkIfBlizzard()) {
3133
Logger::logEvent(
3234
EventTypes::BLIZZARD_VISIT,

0 commit comments

Comments
 (0)