diff --git a/application/modules/shoutbox/boxes/Shoutbox.php b/application/modules/shoutbox/boxes/Shoutbox.php index 8c789c8e3..d81b357ab 100644 --- a/application/modules/shoutbox/boxes/Shoutbox.php +++ b/application/modules/shoutbox/boxes/Shoutbox.php @@ -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 = []; diff --git a/application/modules/shoutbox/config/config.php b/application/modules/shoutbox/config/config.php index 124049c26..37dd6d718 100644 --- a/application/modules/shoutbox/config/config.php +++ b/application/modules/shoutbox/config/config.php @@ -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',