mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-21 21:30:08 +00:00
fixup! Reformat PHP files as PSR-12
This commit is contained in:
parent
adf8792cb2
commit
d50f111997
@ -45,6 +45,15 @@ public function addObjectListCondition(DatabaseObjectList $objectList, array $co
|
|||||||
throw new ParentClassException(\get_class($objectList), RoomList::class);
|
throw new ParentClassException(\get_class($objectList), RoomList::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
$objectList->getConditionBuilder()->add("EXISTS (SELECT 1 FROM chat" . WCF_N . "_room_to_user r2u WHERE r2u.roomID = room.roomID AND active = ?)", [ 1 ]);
|
$objectList->getConditionBuilder()->add(
|
||||||
|
"
|
||||||
|
EXISTS (
|
||||||
|
SELECT 1
|
||||||
|
FROM chat" . WCF_N . "_room_to_user r2u
|
||||||
|
WHERE r2u.roomID = room.roomID
|
||||||
|
AND active = ?
|
||||||
|
)",
|
||||||
|
[ 1 ]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user