mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Fix reading the suspensions from userstorage
This commit is contained in:
parent
aeaac46f67
commit
73a152bcfa
@ -581,12 +581,6 @@ Fetch the roomlist from the server and update it in the GUI.
|
|||||||
handleMessages data.messages
|
handleMessages data.messages
|
||||||
|
|
||||||
document.title = v.titleTemplate.fetch data
|
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`)
|
Reload the whole page when an error occurs. The users thus sees the error message (usually `PermissionDeniedException`)
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ public static function getSuspensionsForUser(\wcf\data\user\User $user = null) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
$suspensions = unserialize($data[$user->userID]);
|
$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) {
|
catch (\wcf\system\exception\SystemException $e) {
|
||||||
$sql = "SELECT
|
$sql = "SELECT
|
||||||
|
Loading…
Reference in New Issue
Block a user