From 018fd4d305722c43e98e08eeca9b7cab5f44875c Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 17 Dec 2017 02:43:42 -0700 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 4f3e3dbec9..2c5746674c 100644 --- a/app/time_conditions/time_condition_edit.php +++ b/app/time_conditions/time_condition_edit.php @@ -548,11 +548,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); if (is_array($result)) { foreach ($result as &$row) { $domain_uuid = $row["domain_uuid"];