diff --git a/file/js/be.bastelstu.Chat.litcoffee b/file/js/be.bastelstu.Chat.litcoffee index 72b72d6..128e3af 100644 --- a/file/js/be.bastelstu.Chat.litcoffee +++ b/file/js/be.bastelstu.Chat.litcoffee @@ -581,12 +581,6 @@ Fetch the roomlist from the server and update it in the GUI. handleMessages data.messages document.title = v.titleTemplate.fetch data - -Fix smiley category URLs, as the URL changed. - - $('#smilies .menu li a').each (key, value) -> - anchor = $(value) - anchor.attr 'href', anchor.attr('href').replace /.*#/, "#{target.attr href}#" Reload the whole page when an error occurs. The users thus sees the error message (usually `PermissionDeniedException`) diff --git a/file/lib/data/suspension/Suspension.class.php b/file/lib/data/suspension/Suspension.class.php index 7431ce9..3814807 100644 --- a/file/lib/data/suspension/Suspension.class.php +++ b/file/lib/data/suspension/Suspension.class.php @@ -50,7 +50,7 @@ public static function getSuspensionsForUser(\wcf\data\user\User $user = null) { try { $suspensions = unserialize($data[$user->userID]); - if (!$suspensions) throw new \wcf\system\exception\SystemException(); + if ($suspensions === false) throw new \wcf\system\exception\SystemException(); } catch (\wcf\system\exception\SystemException $e) { $sql = "SELECT