mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Only set variables with values not variables.
This commit is contained in:
@@ -448,7 +448,10 @@ include "root.php";
|
|||||||
if ($regex_match) {
|
if ($regex_match) {
|
||||||
//get the variables
|
//get the variables
|
||||||
if ($field[dialplan_detail_type] == "set" && $field[dialplan_detail_tag] == "action") {
|
if ($field[dialplan_detail_type] == "set" && $field[dialplan_detail_tag] == "action") {
|
||||||
$this->variables .= $field[dialplan_detail_data].",";
|
//only set variables with values not variables
|
||||||
|
if (strpos($field[dialplan_detail_data], '$') === false) {
|
||||||
|
$this->variables .= $field[dialplan_detail_data].",";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//process the $x detail data variables
|
//process the $x detail data variables
|
||||||
if ($field['dialplan_detail_tag'] == "action" && $field['dialplan_detail_type'] == "bridge" && $dialplan_detail_data != "\${enum_auto_route}") {
|
if ($field['dialplan_detail_tag'] == "action" && $field['dialplan_detail_type'] == "bridge" && $dialplan_detail_data != "\${enum_auto_route}") {
|
||||||
|
|||||||
Reference in New Issue
Block a user