executeAction(); (new \chat\data\user\UserAction([], 'clearDeadSessions'))->executeAction(); $sql = "UPDATE chat".WCF_N."_room_to_user SET active = ? WHERE (roomID, userID) NOT IN (SELECT roomID, userID FROM chat".WCF_N."_session) AND active = ?"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute([ 0, 1 ]); if ($statement->getAffectedRows()) { \wcf\functions\exception\logThrowable(new \Exception('Unreachable')); } } }