diff --git a/acptemplate/suspensionList.tpl b/acptemplate/suspensionList.tpl index 8eaace1..4732fe6 100644 --- a/acptemplate/suspensionList.tpl +++ b/acptemplate/suspensionList.tpl @@ -10,17 +10,12 @@

{lang}wcf.acp.suspension.list{/lang} {#$items}

- - - - - + + @@ -30,17 +25,17 @@ {foreach from=$objects item=$suspension} - - - - - + + + + {/foreach}
{lang}wcf.global.objectID{/lang}{lang}wcf.acp.chat.userID{/lang}{lang}wcf.acp.chat.username{/lang}{lang}wcf.acp.chat.roomID{/lang}{lang}wcf.user.username{/lang}{lang}chat.general.room{/lang} {lang}wcf.acp.chat.type{/lang} {lang}wcf.acp.chat.expires{/lang}
{@$suspension->suspensionID}{@$suspension->userID}{@$suspension->username}{@$suspension->roomID}{@$suspension->type}{@$suspension->expires|date}{$suspension->username}{if $suspension->roomID}{@$suspension->roomID}{else}{lang}chat.room.global{/lang}{/if}{lang}chat.suspension.{@$suspension->type}{/lang}{@$suspension->expires|time} ({@$suspension->expires|dateDiff})
- +{else} +

{lang}chat.acp.suspension.noItems{/lang}

{/if} diff --git a/file/lib/acp/page/SuspensionListPage.class.php b/file/lib/acp/page/SuspensionListPage.class.php index 8e1f64b..11c59d1 100644 --- a/file/lib/acp/page/SuspensionListPage.class.php +++ b/file/lib/acp/page/SuspensionListPage.class.php @@ -48,9 +48,9 @@ class SuspensionListPage extends \wcf\page\SortablePage { protected function initObjectList() { parent::initObjectList(); - $this->objectList->sqlSelects .= "user.username"; - $this->objectList->sqlJoins .= "LEFT JOIN - wcf".WCF_N."_user AS user - ON suspension.userID = user.userID"; + $this->objectList->sqlSelects .= "user_table.username"; + $this->objectList->sqlJoins .= " LEFT JOIN wcf".WCF_N."_user user_table + ON suspension.userID = user_table.userID"; + $this->objectList->getConditionBuilder()->add('expires >= ?', array(TIME_NOW)); } }