Add elseif and improve indentation.

This commit is contained in:
FusionPBX 2021-02-10 12:38:18 -07:00 committed by GitHub
parent 0fbd90899a
commit 2ca45d4cf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 8 deletions

View File

@ -73,7 +73,7 @@ if ($domains_processed == 1) {
$sql .= "ivr_menu_dialect = split_part(ivr_menu_language, '/', 2), ";
$sql .= "ivr_menu_voice = split_part(ivr_menu_language, '/', 3) ";
}
else{
elseif ($db_type == 'mysql') {
$sql .= "ivr_menu_language = SUBSTRING_INDEX(SUBSTRING_INDEX(ivr_menu_language, '/', 1), '/', -1), ";
$sql .= "ivr_menu_dialect = SUBSTRING_INDEX(SUBSTRING_INDEX(ivr_menu_language, '/', 2), '/', -1), ";
$sql .= "ivr_menu_voice = SUBSTRING_INDEX(SUBSTRING_INDEX(ivr_menu_language, '/', 3), '/', -1) ";