From 7ffc680283d47b50b613aeabbd47df515e65dbbb Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 8 Dec 2016 02:07:28 -0700 Subject: [PATCH] Update dialplan_edit.php Check if details is an array before using ksort. --- app/dialplan/dialplan_edit.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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";