mirror of
https://github.com/nextcloud/spreed.git
synced 2025-12-18 05:20:50 +01:00
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:
parent
08edf866e0
commit
dc3cf2e4fd
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue