Skip to content

Commit

Permalink
fix: added missing check on current user object, closes #3316
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Jan 8, 2025
1 parent 7e0487a commit 7a33676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpmyfaq/admin/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
'msgPoweredBy' => System::getPoweredByString(),
'documentationUrl' => System::getDocumentationUrl(),
'phpMyFaqUrl' => System::PHPMYFAQ_URL,
'isUserLoggedIn' => $user->isLoggedIn(),
'isUserLoggedIn' => ($user instanceof CurrentUser) ? $user->isLoggedIn() : false,
'currentLanguage' => $faqLangCode,
'currentTimeStamp' => time(),
'currentYear' => date('Y'),
Expand Down

0 comments on commit 7a33676

Please sign in to comment.