mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update ring_group_edit.php
This commit is contained in:
@@ -396,18 +396,24 @@
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
$prep_statement->execute();
|
||||
$ring_group_destinations = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||
$x = count($ring_group_destinations);
|
||||
$limit = $x + 1;
|
||||
}
|
||||
|
||||
while($x < $limit) {
|
||||
$ring_group_destinations[$x]['destination_number'] = '';
|
||||
$ring_group_destinations[$x]['destination_delay'] = '';
|
||||
$ring_group_destinations[$x]['destination_timeout'] = '';
|
||||
$ring_group_destinations[$x]['destination_prompt'] = '';
|
||||
$x++;
|
||||
//add an empty row to the options array
|
||||
if (count($ring_group_destinations) == 0) {
|
||||
$rows = $_SESSION['ring_group']['destination_add_rows']['numeric'];
|
||||
$id = 0;
|
||||
}
|
||||
if (count($ring_group_destinations) > 0) {
|
||||
$rows = $_SESSION['ring_group']['destination_edit_rows']['numeric'];
|
||||
$id = count($ring_group_destinations)+1;
|
||||
}
|
||||
for ($x = 0; $x < $rows; $x++) {
|
||||
$ring_group_destinations[$id]['destination_number'] = '';
|
||||
$ring_group_destinations[$id]['destination_delay'] = '';
|
||||
$ring_group_destinations[$id]['destination_timeout'] = '';
|
||||
$ring_group_destinations[$id]['destination_prompt'] = '';
|
||||
$id++;
|
||||
}
|
||||
unset($limit);
|
||||
|
||||
//get the ring group users
|
||||
if (strlen($ring_group_uuid) > 0) {
|
||||
|
||||
Reference in New Issue
Block a user