Skip to content

Commit

Permalink
Shoutbox: Fix error with userId null (#1121)
Browse files Browse the repository at this point in the history
  • Loading branch information
blackcoder87 authored Nov 25, 2024
1 parent b8b01bf commit b83b5e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application/modules/shoutbox/boxes/Shoutbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function render()
$userId = $this->getUser()->getId();
}

$user = $userMapper->getUserById($userId);
$user = $userId ? $userMapper->getUserById($userId) : null;
$ids = [3];
if ($user) {
$ids = [];
Expand Down
2 changes: 1 addition & 1 deletion application/modules/shoutbox/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Config extends \Ilch\Config\Install
{
public $config = [
'key' => 'shoutbox',
'version' => '1.6.1',
'version' => '1.6.2',
'icon_small' => 'fa-solid fa-bullhorn',
'author' => 'Veldscholten, Kevin',
'link' => 'https://ilch.de',
Expand Down

0 comments on commit b83b5e7

Please sign in to comment.