Need to escape the $ with the back slash

This commit is contained in:
FusionPBX 2022-01-28 19:20:33 -07:00 committed by GitHub
parent 452086cac9
commit 2fb7a5a29c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -101,7 +101,8 @@
unset($sql);
//change dialplan context ${domain_name} to global
$sql = "update v_dialplans set dialplan_context = 'global' where dialplan_context = '${domain_name}';\n";
$sql = "update v_dialplans set dialplan_context = 'global' ";
$sql .= "where dialplan_context = '\${domain_name}';\n";
$database->execute($sql);
unset($sql);