Skip to content

Commit

Permalink
Merge pull request #279 from nerun/issue278
Browse files Browse the repository at this point in the history
Fix issue #278
  • Loading branch information
Klap-in authored Dec 22, 2023
2 parents 01f0275 + 7b45572 commit 55b0e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function extendJSINFO(Event $event)
global $INFO, $JSINFO;

$JSINFO['isadmin'] = (int)$INFO['isadmin'];
$JSINFO['isauth'] = (int)$INFO['userinfo'] ?? 0;
$JSINFO['isauth'] = isset($INFO['userinfo']) ? (int) $INFO['userinfo'] : 0;
}

/**
Expand Down

0 comments on commit 55b0e9a

Please sign in to comment.