Update dialplan_edit.php
Fix the indentation and use not empty.
This commit is contained in:
parent
fa123ff069
commit
5712df1118
|
|
@ -2,7 +2,7 @@
|
||||||
/*
|
/*
|
||||||
FusionPBX
|
FusionPBX
|
||||||
Version: MPL 1.1
|
Version: MPL 1.1
|
||||||
javascript:void(0);
|
|
||||||
The contents of this file are subject to the Mozilla Public License Version
|
The contents of this file are subject to the Mozilla Public License Version
|
||||||
1.1 (the "License"); you may not use this file except in compliance with
|
1.1 (the "License"); you may not use this file except in compliance with
|
||||||
the License. You may obtain a copy of the License at
|
the License. You may obtain a copy of the License at
|
||||||
|
|
@ -294,18 +294,13 @@ javascript:void(0);
|
||||||
$database->save($array);
|
$database->save($array);
|
||||||
unset($array);
|
unset($array);
|
||||||
|
|
||||||
//remove checked dialplan details
|
//remove checked dialplan details
|
||||||
if (
|
if ($action == 'update' && permission_exists('dialplan_detail_delete') && !empty($dialplan_details_delete)) {
|
||||||
$action == 'update'
|
$obj = new dialplan;
|
||||||
&& permission_exists('dialplan_detail_delete')
|
$obj->dialplan_uuid = $dialplan_uuid;
|
||||||
&& is_array($dialplan_details_delete)
|
$obj->app_uuid = $app_uuid ?? null;
|
||||||
&& @sizeof($dialplan_details_delete) != 0
|
$obj->delete_details($dialplan_details_delete);
|
||||||
) {
|
}
|
||||||
$obj = new dialplan;
|
|
||||||
$obj->dialplan_uuid = $dialplan_uuid;
|
|
||||||
$obj->app_uuid = $app_uuid ?? null;
|
|
||||||
$obj->delete_details($dialplan_details_delete);
|
|
||||||
}
|
|
||||||
|
|
||||||
//clear the cache
|
//clear the cache
|
||||||
$cache = new cache;
|
$cache = new cache;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue