mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Fix reading the suspensions from userstorage
This commit is contained in:
parent
aeaac46f67
commit
73a152bcfa
@ -582,12 +582,6 @@ Fetch the roomlist from the server and update it in the GUI.
|
|||||||
|
|
||||||
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`)
|
||||||
|
|
||||||
error: ->
|
error: ->
|
||||||
|
@ -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