From 72273055eddf0fb1438f11c83d2bd1d96ecb0737 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 21 Oct 2017 10:37:38 -0600 Subject: [PATCH] Update conference_edit.php --- app/conferences/conference_edit.php | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/app/conferences/conference_edit.php b/app/conferences/conference_edit.php index 296474ea90..051e13f111 100644 --- a/app/conferences/conference_edit.php +++ b/app/conferences/conference_edit.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2016 + Portions created by the Initial Developer are Copyright (C) 2008-2017 the Initial Developer. All Rights Reserved. Contributor(s): @@ -324,6 +324,19 @@ unset ($prep_statement); } +//get the conference profiles + $sql = "select * "; + $sql .= "from v_conference_profiles "; + $sql .= "where profile_enabled = 'true' "; + $sql .= "and (profile_name <> 'page' and profile_name <> 'sla') "; + $prep_statement = $db->prepare(check_sql($sql)); + $prep_statement->execute(); + $conference_profiles = $prep_statement->fetchAll(PDO::FETCH_NAMED); + unset ($prep_statement, $sql); + +//set the default + if ($conference_profile == "") { $conference_profile = "default"; } + //set defaults if (strlen($conference_enabled) == 0) { $conference_enabled = "true"; } @@ -445,12 +458,14 @@ echo "\n"; echo "\n"; echo " \n"; echo "
\n"; echo "".$text['description-profile']."\n";