Fixed call center queue agents table (#6746)
* Update destination_edit.php * Fixed php 8.1 errors * Fixed cdr recording download not working * Update call_center_queue_edit.php * Update call_center_queue_edit.php --------- Co-authored-by: FusionPBX <markjcrane@gmail.com>
This commit is contained in:
parent
b14fde8eec
commit
22a01b147d
|
|
@ -818,7 +818,7 @@
|
|||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
if (permission_exists('call_center_tier_view') && !empty($agents)) {
|
||||
if (permission_exists('call_center_tier_view') && !empty($agents) && is_array($agents)) {
|
||||
echo "<tr>";
|
||||
echo " <td class='vncell' valign='top'>".$text['label-agents']."</td>";
|
||||
echo " <td class='vtable' align='left'>";
|
||||
|
|
@ -830,7 +830,7 @@
|
|||
echo " <td></td>\n";
|
||||
echo " </tr>\n";
|
||||
$x = 0;
|
||||
if (!empty($tiers)) {
|
||||
if (is_array($tiers)) {
|
||||
foreach($tiers as $field) {
|
||||
echo " <tr>\n";
|
||||
echo " <td class=''>";
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@
|
|||
//get total destination count from the database, check limit, if defined
|
||||
if (!permission_exists('destination_domain')) {
|
||||
if ($action == 'add') {
|
||||
if ($_SESSION['limit']['destinations']['numeric'] != '') {
|
||||
if (!empty($_SESSION['limit']['destinations']['numeric'])) {
|
||||
$sql = "select count(*) from v_destinations where domain_uuid = :domain_uuid ";
|
||||
$parameters['domain_uuid'] = $_SESSION['domain_uuid'];
|
||||
$database = new database;
|
||||
|
|
@ -1071,7 +1071,7 @@
|
|||
$select_style = $select_style ?? '';
|
||||
|
||||
//pre-populate the form
|
||||
if (!empty($_GET["id"]) > 0 && empty($_POST["persistformvar"])) {
|
||||
if (!empty($_GET["id"]) && empty($_POST["persistformvar"])) {
|
||||
if (is_uuid($_GET["id"])) {
|
||||
$destination_uuid = $_GET["id"];
|
||||
$sql = "select * from v_destinations ";
|
||||
|
|
|
|||
|
|
@ -1383,6 +1383,7 @@ if (!class_exists('xml_cdr')) {
|
|||
header("Content-Length: ".filesize($record_file));
|
||||
}
|
||||
ob_clean();
|
||||
fpassthru($fd);
|
||||
|
||||
//content-range
|
||||
if (isset($_SERVER['HTTP_RANGE']) && $_GET['t'] != "bin") {
|
||||
|
|
|
|||
|
|
@ -218,7 +218,7 @@
|
|||
*/
|
||||
|
||||
//limit the number of results
|
||||
if ($_SESSION['cdr']['limit']['numeric'] > 0) {
|
||||
if (!empty($_SESSION['cdr']['limit']['numeric']) && $_SESSION['cdr']['limit']['numeric'] > 0) {
|
||||
$num_rows = $_SESSION['cdr']['limit']['numeric'];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue