mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
fixed number_translation_edit.php for empty arrays (#3052)
This commit is contained in:
committed by
FusionPBX
parent
8b166090a6
commit
a6669a8252
@@ -171,7 +171,12 @@
|
||||
}
|
||||
|
||||
//add an empty row
|
||||
$x = count($number_translation_details);
|
||||
if (is_array($number_translation_details)) {
|
||||
$x = count($number_translation_details);
|
||||
} else {
|
||||
$number_translation_details = [];
|
||||
$x = 0;
|
||||
}
|
||||
$number_translation_details[$x]['number_translation_uuid'] = $number_translation_uuid;
|
||||
$number_translation_details[$x]['number_translation_detail_uuid'] = uuid();
|
||||
$number_translation_details[$x]['number_translation_detail_regex'] = '';
|
||||
|
||||
Reference in New Issue
Block a user