Update time_condition_edit.php

This commit is contained in:
FusionPBX 2016-10-22 23:24:28 -06:00 committed by GitHub
parent 5b061a5563
commit 04db82b5e4
1 changed files with 5 additions and 5 deletions

View File

@ -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"];