Pass the database object.

This commit is contained in:
Mark Crane 2013-04-02 04:39:42 +00:00
parent 03f5952c17
commit 0ffbda23db
1 changed files with 1 additions and 0 deletions

View File

@ -263,6 +263,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//add the dialplan
require_once "includes/classes/database.php";
$database = new database;
$database->db = $db;
$database->table = "v_dialplans";
$database->fields['domain_uuid'] = $_SESSION['domain_uuid'];
$database->fields['dialplan_uuid'] = $dialplan_uuid;