Skip to content

Commit

Permalink
Fixes VoiceAPI could not be null (HugoFara/lwt-docker-installer#5).
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoFara committed Jan 8, 2024
1 parent f604420 commit 309c437
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions edit_languages.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function edit_languages_op_save(): string
((int)isset($_REQUEST["LgRemoveSpaces"])) . ', '.
((int)isset($_REQUEST["LgSplitEachChar"])) . ', '.
((int)isset($_REQUEST["LgRightToLeft"])) . ', ' .
convert_string_to_sqlsyntax($_REQUEST["LgTTSVoiceAPI"]) . ', ' .
convert_string_to_sqlsyntax_nonull($_REQUEST["LgTTSVoiceAPI"]) . ', ' .
((int)isset($_REQUEST["LgShowRomanization"])) .
')',
'Saved'
Expand All @@ -212,7 +212,7 @@ function edit_languages_op_save(): string
'LgRemoveSpaces = ' . ((int)isset($_REQUEST["LgRemoveSpaces"])) . ', ' .
'LgSplitEachChar = ' . ((int)isset($_REQUEST["LgSplitEachChar"])) . ', ' .
'LgRightToLeft = ' . ((int)isset($_REQUEST["LgRightToLeft"])) . ', ' .
"LgTTSVoiceAPI = " . convert_string_to_sqlsyntax($_REQUEST["LgTTSVoiceAPI"]) . ', ' .
"LgTTSVoiceAPI = " . convert_string_to_sqlsyntax_nonull($_REQUEST["LgTTSVoiceAPI"]) . ', ' .
"LgShowRomanization = " . ((int)isset($_REQUEST["LgShowRomanization"])) .
" WHERE LgID = $val",
'Saved'
Expand Down Expand Up @@ -274,7 +274,7 @@ function edit_languages_op_change($lid): string
'LgRemoveSpaces = ' . ((int)isset($_REQUEST["LgRemoveSpaces"])) . ', ' .
'LgSplitEachChar = ' . ((int)isset($_REQUEST["LgSplitEachChar"])) . ', ' .
'LgRightToLeft = ' . ((int)isset($_REQUEST["LgRightToLeft"])) . ', ' .
'LgTTSVoiceAPI = ' . convert_string_to_sqlsyntax($_REQUEST["LgTTSVoiceAPI"]) . ', ' .
'LgTTSVoiceAPI = ' . convert_string_to_sqlsyntax_nonull($_REQUEST["LgTTSVoiceAPI"]) . ', ' .
'LgShowRomanization = ' . ((int)isset($_REQUEST["LgShowRomanization"])) .
" WHERE LgID = $lid",
'Updated'
Expand Down

0 comments on commit 309c437

Please sign in to comment.