Tidy up a different switch statement within save_dialplan_xml().

This commit is contained in:
Nate Jones 2015-03-15 01:33:27 +00:00
parent fca19e3c5f
commit 44b67c820d
1 changed files with 15 additions and 35 deletions

View File

@ -2285,35 +2285,15 @@ function save_dialplan_xml() {
//get the generic type
switch ($row2['dialplan_detail_type']) {
case "hour":
$type = 'time';
break;
case "minute":
$type = 'time';
break;
case "minute-of-day":
$type = 'time';
break;
case "mday":
$type = 'time';
break;
case "mweek":
$type = 'time';
break;
case "mon":
$type = 'time';
break;
case "time-of-day":
$type = 'time';
break;
case "mday":
case "mweek":
case "mon":
case "yday":
$type = 'time';
break;
case "year":
$type = 'time';
break;
case "wday":
$type = 'time';
break;
case "week":
$type = 'time';
break;