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
|
//ensure the condition array uniform
|
||||||
if (!is_array($dialplan['extension']['condition'][0])) {
|
if (is_array($dialplan)) {
|
||||||
$tmp = $dialplan['extension']['condition'];
|
if (!is_array($dialplan['extension']['condition'][0])) {
|
||||||
unset($dialplan['extension']['condition']);
|
$tmp = $dialplan['extension']['condition'];
|
||||||
$dialplan['extension']['condition'][0] = $tmp;
|
unset($dialplan['extension']['condition']);
|
||||||
|
$dialplan['extension']['condition'][0] = $tmp;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//check if the dialplan app uuid exists
|
//check if the dialplan app uuid exists
|
||||||
$this->app_uuid = $dialplan['extension']['@attributes']['app_uuid'];
|
$this->app_uuid = $dialplan['extension']['@attributes']['app_uuid'];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue