From cb2e0df06c1b3096e6132b4e28408ecd9bbf0fe4 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 23 Oct 2016 00:20:29 -0600 Subject: [PATCH] Update fax.php --- app/fax/resources/classes/fax.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/app/fax/resources/classes/fax.php b/app/fax/resources/classes/fax.php index 50294088c1..1154b8d080 100644 --- a/app/fax/resources/classes/fax.php +++ b/app/fax/resources/classes/fax.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Copyright (C) 2015 + Copyright (C) 2015-2016 All Rights Reserved. Contributor(s): @@ -157,12 +157,11 @@ $p->add("dialplan_detail_edit", 'temp'); //save the dialplan - $orm = new orm; - $orm->name('dialplans'); - $orm->app_name = 'fax'; - $orm->app_uuid = '24108154-4ac3-1db6-1551-4731703a4440'; - $orm->save($array); - //$message = $orm->message; + $database = new database; + $database->app_name = 'fax'; + $database->app_uuid = '24108154-4ac3-1db6-1551-4731703a4440'; + $database->save($array); + //$message = $database->message; //remove the temporary permission $p->delete("dialplan_add", 'temp');