mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-09 18:18:22 +00:00
Dashboard - Missed Calls: Updates for PHP 8.1
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
unset($assigned_extension);
|
||||
|
||||
//if also viewing system status, show more recent calls (more room avaialble)
|
||||
$missed_limit = (is_array($selected_blocks) && in_array('counts', $selected_blocks)) ? 10 : 5;
|
||||
$missed_limit = !empty($selected_blocks) && (is_array($selected_blocks) && in_array('counts', $selected_blocks)) ? 10 : 5;
|
||||
|
||||
//get the missed calls from call detail records
|
||||
$sql = "select \n";
|
||||
@@ -148,7 +148,7 @@
|
||||
$tmp_year = date("Y", strtotime($row['start_stamp']));
|
||||
$tmp_month = date("M", strtotime($row['start_stamp']));
|
||||
$tmp_day = date("d", strtotime($row['start_stamp']));
|
||||
$tmp_start_epoch = ($_SESSION['domain']['time_format']['text'] == '12h') ? date("n/j g:ia", $row['start_epoch']) : date("n/j H:i", $row['start_epoch']);
|
||||
$tmp_start_epoch = !empty($_SESSION['domain']['time_format']) && $_SESSION['domain']['time_format']['text'] == '12h' ? date("n/j g:ia", $row['start_epoch']) : date("n/j H:i", $row['start_epoch']);
|
||||
//set click-to-call variables
|
||||
if (permission_exists('click_to_call_call')) {
|
||||
$tr_link = "onclick=\"send_cmd('".PROJECT_PATH."/app/click_to_call/click_to_call.php".
|
||||
@@ -184,7 +184,7 @@
|
||||
echo "</table>\n";
|
||||
echo "<span style='display: block; margin: 6px 0 7px 0;'><a href='".PROJECT_PATH."/app/xml_cdr/xml_cdr.php?call_result=missed'>".$text['label-view_all']."</a></span>\n";
|
||||
echo "</div>";
|
||||
$n++;
|
||||
//$n++;
|
||||
|
||||
echo "<span class='hud_expander' onclick=\"$('#hud_missed_calls_details').slideToggle('fast');\"><span class='fas fa-ellipsis-h'></span></span>";
|
||||
echo "</div>\n";
|
||||
|
||||
Reference in New Issue
Block a user