diff options
| author | lsces <lester@lsces.co.uk> | 2026-05-08 14:44:41 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2026-05-08 14:44:41 +0100 |
| commit | d0a919132b939e2381d6a0d5fb357fce62f976e4 (patch) | |
| tree | 5a412c25e98e81bbf62ccd01ecfeead6d180fafb | |
| parent | 4653c951143bddc171060de6f37ef1910bf0ed84 (diff) | |
| download | liberty-d0a919132b939e2381d6a0d5fb357fce62f976e4.tar.gz liberty-d0a919132b939e2381d6a0d5fb357fce62f976e4.tar.bz2 liberty-d0a919132b939e2381d6a0d5fb357fce62f976e4.zip | |
Add default when no user active (PHP8)
| -rwxr-xr-x | includes/classes/LibertyContent.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/classes/LibertyContent.php b/includes/classes/LibertyContent.php index 922cf3c..854847c 100755 --- a/includes/classes/LibertyContent.php +++ b/includes/classes/LibertyContent.php @@ -2751,7 +2751,7 @@ class LibertyContent extends LibertyBase implements BitCacheable { // here we provide getDisplay(Link|Url) with user-specific information that we get the correct links to display in pages $userInfo = $gBitUser->getUserInfo( ['content_id' => $aux['content_id'] ] ); $aux['title'] = $type['handler_class']::getTitleFromHash( $userInfo ); - $aux['display_link'] = $type['handler_class']::getDisplayLinkFromHash( $userInfo, $userInfo['login'] ); + $aux['display_link'] = $type['handler_class']::getDisplayLinkFromHash( $userInfo, $userInfo['login'] ?? '' ); $aux['display_url'] = $type['handler_class']::getDisplayUrlFromHash( $userInfo ); } else { $aux['title'] = $type['handler_class']::getTitleFromHash( $aux ); |
