diff --git a/app/dialplan/dialplan_edit.php b/app/dialplan/dialplan_edit.php index 7cef5d08cd..d2d0c89245 100644 --- a/app/dialplan/dialplan_edit.php +++ b/app/dialplan/dialplan_edit.php @@ -303,7 +303,9 @@ $details[$group][$x]['dialplan_detail_order'] = $dialplan_detail_order; } //sort the details array by group number - ksort($details); + if (is_array($details)) { + ksort($details); + } //show the header require_once "resources/header.php";