mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2025-01-09 00:20:08 +00:00
Fix selecting of global suspensions
This commit is contained in:
parent
2a31c61510
commit
c6ffaf4fd7
@ -91,7 +91,7 @@ protected function initObjectList() {
|
|||||||
$this->objectList->sqlJoins .= $conditionJoins;
|
$this->objectList->sqlJoins .= $conditionJoins;
|
||||||
|
|
||||||
$this->objectList->getConditionBuilder()->add('expires >= ?', array(TIME_NOW));
|
$this->objectList->getConditionBuilder()->add('expires >= ?', array(TIME_NOW));
|
||||||
$this->objectList->getConditionBuilder()->add('room_table.permanent = ?', array(1));
|
$this->objectList->getConditionBuilder()->add('(room_table.permanent = ? OR suspension.roomID IS NULL)', array(1));
|
||||||
if ($this->filterType !== null) $this->objectList->getConditionBuilder()->add('suspension.type = ?', array($this->filterType));
|
if ($this->filterType !== null) $this->objectList->getConditionBuilder()->add('suspension.type = ?', array($this->filterType));
|
||||||
if ($this->filterUserID !== null) $this->objectList->getConditionBuilder()->add('suspension.userID = ?', array($this->filterUserID));
|
if ($this->filterUserID !== null) $this->objectList->getConditionBuilder()->add('suspension.userID = ?', array($this->filterUserID));
|
||||||
if ($this->filterRoomID !== null) {
|
if ($this->filterRoomID !== null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user