Prechádzať zdrojové kódy

Add single quotes around true in the outbound_route_to_bridge function. Remove the lib_switch.php include in fax_to_email.php that was not necessary after all.

Mark Crane 13 rokov pred
rodič
commit
b859c36da3
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      includes/lib_switch.php

+ 1 - 1
includes/lib_switch.php

@@ -2197,7 +2197,7 @@ function outbound_route_to_bridge ($destination_number) {
 	$sql = "select * from v_dialplans ";
 	$sql .= "where domain_uuid = '".$domain_uuid."' ";
 	$sql .= "and app_uuid = '8c914ec3-9fc0-8ab5-4cda-6c9288bdc9a3' ";
-	$sql .= "and dialplan_enabled = true ";
+	$sql .= "and dialplan_enabled = 'true' ";
 	$sql .= "order by dialplan_order asc ";
 	$prep_statement = $db->prepare(check_sql($sql));
 	$prep_statement->execute();