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:
Alex 2023-06-06 11:31:22 -06:00 committed by GitHub
parent b14fde8eec
commit 22a01b147d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 5 deletions

View File

@ -818,7 +818,7 @@
echo "</td>\n"; echo "</td>\n";
echo "</tr>\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 "<tr>";
echo " <td class='vncell' valign='top'>".$text['label-agents']."</td>"; echo " <td class='vncell' valign='top'>".$text['label-agents']."</td>";
echo " <td class='vtable' align='left'>"; echo " <td class='vtable' align='left'>";
@ -830,7 +830,7 @@
echo " <td></td>\n"; echo " <td></td>\n";
echo " </tr>\n"; echo " </tr>\n";
$x = 0; $x = 0;
if (!empty($tiers)) { if (is_array($tiers)) {
foreach($tiers as $field) { foreach($tiers as $field) {
echo " <tr>\n"; echo " <tr>\n";
echo " <td class=''>"; echo " <td class=''>";

View File

@ -66,7 +66,7 @@
//get total destination count from the database, check limit, if defined //get total destination count from the database, check limit, if defined
if (!permission_exists('destination_domain')) { if (!permission_exists('destination_domain')) {
if ($action == 'add') { 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 "; $sql = "select count(*) from v_destinations where domain_uuid = :domain_uuid ";
$parameters['domain_uuid'] = $_SESSION['domain_uuid']; $parameters['domain_uuid'] = $_SESSION['domain_uuid'];
$database = new database; $database = new database;
@ -1071,7 +1071,7 @@
$select_style = $select_style ?? ''; $select_style = $select_style ?? '';
//pre-populate the form //pre-populate the form
if (!empty($_GET["id"]) > 0 && empty($_POST["persistformvar"])) { if (!empty($_GET["id"]) && empty($_POST["persistformvar"])) {
if (is_uuid($_GET["id"])) { if (is_uuid($_GET["id"])) {
$destination_uuid = $_GET["id"]; $destination_uuid = $_GET["id"];
$sql = "select * from v_destinations "; $sql = "select * from v_destinations ";

View File

@ -1383,6 +1383,7 @@ if (!class_exists('xml_cdr')) {
header("Content-Length: ".filesize($record_file)); header("Content-Length: ".filesize($record_file));
} }
ob_clean(); ob_clean();
fpassthru($fd);
//content-range //content-range
if (isset($_SERVER['HTTP_RANGE']) && $_GET['t'] != "bin") { if (isset($_SERVER['HTTP_RANGE']) && $_GET['t'] != "bin") {

View File

@ -218,7 +218,7 @@
*/ */
//limit the number of results //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']; $num_rows = $_SESSION['cdr']['limit']['numeric'];
} }