1
0
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:
Tim Düsterhus 2022-03-04 21:13:40 +01:00
parent adf8792cb2
commit d50f111997
Signed by: TimWolla
GPG Key ID: 8FF75566094168AF

View File

@ -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 ]
);
} }
} }