Fix an illegal offset error message when adding a domain.
This commit is contained in:
parent
6fff3b91a1
commit
6cf82027e7
|
|
@ -259,10 +259,12 @@ include "root.php";
|
|||
}
|
||||
|
||||
//ensure the condition array uniform
|
||||
if (!is_array($dialplan['extension']['condition'][0])) {
|
||||
$tmp = $dialplan['extension']['condition'];
|
||||
unset($dialplan['extension']['condition']);
|
||||
$dialplan['extension']['condition'][0] = $tmp;
|
||||
if (is_array($dialplan)) {
|
||||
if (!is_array($dialplan['extension']['condition'][0])) {
|
||||
$tmp = $dialplan['extension']['condition'];
|
||||
unset($dialplan['extension']['condition']);
|
||||
$dialplan['extension']['condition'][0] = $tmp;
|
||||
}
|
||||
}
|
||||
//check if the dialplan app uuid exists
|
||||
$this->app_uuid = $dialplan['extension']['@attributes']['app_uuid'];
|
||||
|
|
|
|||
Loading…
Reference in New Issue