diff --git a/lib/Service/RoomService.php b/lib/Service/RoomService.php index 9e4922c6fe6..59b5228e421 100644 --- a/lib/Service/RoomService.php +++ b/lib/Service/RoomService.php @@ -165,7 +165,7 @@ public function createConversation(int $type, string $name, ?IUser $owner = null throw new InvalidArgumentException('object'); } - if ($type === Room::TYPE_PUBLIC && $password === '' && $this->config->isPasswordEnforced() === true) { + if ($type === Room::TYPE_PUBLIC && $password === '' && $this->config->isPasswordEnforced()) { throw new PasswordException(PasswordException::REASON_VALUE, $this->l10n->t('Password needs to be set')); }