mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
Fix an illegal offset error message when adding a domain.
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user