From 04db82b5e4fc70d63d51035a52e57a98fd9f7b2b Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 22 Oct 2016 23:24:28 -0600 Subject: [PATCH] Update time_condition_edit.php --- app/time_conditions/time_condition_edit.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/time_conditions/time_condition_edit.php b/app/time_conditions/time_condition_edit.php index f37394f81a..9d85004540 100644 --- a/app/time_conditions/time_condition_edit.php +++ b/app/time_conditions/time_condition_edit.php @@ -534,11 +534,11 @@ $p->add("dialplan_detail_edit", 'temp'); //get main dialplan entry - $orm = new orm; - $orm->name('dialplans'); - $orm->uuid($dialplan_uuid); - $result = $orm->find()->get(); - //$message = $orm->message; + $sql = "select * from v_dialplans "; + $sql .= "where dialplan_uuid = '$dialplan_uuid' "; + $prep_statement = $db->prepare(check_sql($sql)); + $prep_statement->execute(); + $result = $prep_statement->fetchAll(PDO::FETCH_NAMED); foreach ($result as &$row) { $domain_uuid = $row["domain_uuid"]; //$app_uuid = $row["app_uuid"];