Minor mods to Access Controls, Bridges, Call Block and Call Broadcast lists and classes.

This commit is contained in:
Nate
2019-10-25 19:40:28 -06:00
parent dc1ba5299c
commit 0c584db194
8 changed files with 84 additions and 70 deletions

View File

@@ -199,16 +199,14 @@ if (!class_exists('call_block')) {
$rows = $database->select($sql, $parameters, 'all');
if (is_array($rows) && @sizeof($rows) != 0) {
foreach ($rows as $x => $row) {
$new_uuid = uuid();
$array[$this->table][$x][$this->uuid_prefix.'uuid'] = $new_uuid;
$array[$this->table][$x]['domain_uuid'] = $row['domain_uuid'];
$array[$this->table][$x]['call_block_name'] = $row['call_block_name'];
$array[$this->table][$x]['call_block_number'] = $row['call_block_number'];
$array[$this->table][$x]['call_block_count'] = 0;
$array[$this->table][$x]['call_block_action'] = $row['call_block_action'];
$array[$this->table][$x]['date_added'] = $row['date_added'];
$array[$this->table][$x]['call_block_enabled'] = $row['call_block_enabled'];
$array[$this->table][$x]['call_block_description'] = trim($row['call_block_description'].' ('.$text['label-copy'].')');
//copy data
$array[$this->table][$x] = $row;
//overwrite
$array[$this->table][$x][$this->uuid_prefix.'uuid'] = uuid();
$array[$this->table][$x]['call_block_description'] = trim($row['call_block_description'].' ('.$text['label-copy'].')');
}
}
unset($sql, $parameters, $rows, $row);