Update dialplan_edit.php
Check if details is an array before using ksort.
This commit is contained in:
parent
c0c6883fbc
commit
7ffc680283
|
|
@ -303,7 +303,9 @@
|
||||||
$details[$group][$x]['dialplan_detail_order'] = $dialplan_detail_order;
|
$details[$group][$x]['dialplan_detail_order'] = $dialplan_detail_order;
|
||||||
}
|
}
|
||||||
//sort the details array by group number
|
//sort the details array by group number
|
||||||
ksort($details);
|
if (is_array($details)) {
|
||||||
|
ksort($details);
|
||||||
|
}
|
||||||
|
|
||||||
//show the header
|
//show the header
|
||||||
require_once "resources/header.php";
|
require_once "resources/header.php";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue