diff --git a/lib/Controller/RoomController.php b/lib/Controller/RoomController.php index feea7599178..744dfbfb4d8 100644 --- a/lib/Controller/RoomController.php +++ b/lib/Controller/RoomController.php @@ -455,10 +455,10 @@ public function getSingleRoom(string $token): DataResponse { try { $participant = $this->participantService->getParticipant($room, $this->userId, $sessionId); - } catch (ParticipantNotFoundException $e) { + } catch (ParticipantNotFoundException) { try { $participant = $this->participantService->getParticipantBySession($room, $sessionId); - } catch (ParticipantNotFoundException $e) { + } catch (ParticipantNotFoundException) { } } } else {