fix: Compare against an empty string rather than using "empty()"

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
Daniel Calviño Sánchez 2025-11-11 14:43:11 +01:00
parent 08edf866e0
commit dc3cf2e4fd

View file

@ -151,7 +151,7 @@ class LiveTranscriptionService {
public function setLanguage(Room $room, string $languageId): void {
$parameters = [
'roomToken' => $room->getToken(),
'langId' => ! empty($languageId) ? $languageId : 'en',
'langId' => $languageId !== '' ? $languageId : 'en',
];
try {