Dashboard - Recent Calls: Updates for PHP 8.1
This commit is contained in:
parent
8f50a96d51
commit
c391faccfc
|
|
@ -30,7 +30,7 @@
|
||||||
unset($assigned_extension);
|
unset($assigned_extension);
|
||||||
|
|
||||||
//if also viewing system status, show more recent calls (more room avaialble)
|
//if also viewing system status, show more recent calls (more room avaialble)
|
||||||
$recent_limit = (is_array($selected_blocks) && in_array('counts', $selected_blocks)) ? 10 : 5;
|
$recent_limit = isset($selected_blocks) && is_array($selected_blocks) && in_array('counts', $selected_blocks) ? 10 : 5;
|
||||||
|
|
||||||
//get the recent calls from call detail records
|
//get the recent calls from call detail records
|
||||||
$sql = "
|
$sql = "
|
||||||
|
|
@ -158,7 +158,7 @@
|
||||||
$tmp_year = date("Y", strtotime($row['start_stamp']));
|
$tmp_year = date("Y", strtotime($row['start_stamp']));
|
||||||
$tmp_month = date("M", strtotime($row['start_stamp']));
|
$tmp_month = date("M", strtotime($row['start_stamp']));
|
||||||
$tmp_day = date("d", 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']);
|
||||||
|
|
||||||
//determine name
|
//determine name
|
||||||
$cdr_name = ($row['direction'] == 'inbound' || ($row['direction'] == 'local' && is_array($assigned_extensions) && in_array($row['destination_number'], $assigned_extensions))) ? $row['caller_id_name'] : $row['destination_number'];
|
$cdr_name = ($row['direction'] == 'inbound' || ($row['direction'] == 'local' && is_array($assigned_extensions) && in_array($row['destination_number'], $assigned_extensions))) ? $row['caller_id_name'] : $row['destination_number'];
|
||||||
|
|
@ -219,7 +219,7 @@
|
||||||
echo "</table>\n";
|
echo "</table>\n";
|
||||||
echo "<span style='display: block; margin: 6px 0 7px 0;'><a href='".PROJECT_PATH."/app/xml_cdr/xml_cdr.php'>".$text['label-view_all']."</a></span>\n";
|
echo "<span style='display: block; margin: 6px 0 7px 0;'><a href='".PROJECT_PATH."/app/xml_cdr/xml_cdr.php'>".$text['label-view_all']."</a></span>\n";
|
||||||
echo "</div>";
|
echo "</div>";
|
||||||
$n++;
|
//$n++;
|
||||||
|
|
||||||
echo "<span class='hud_expander' onclick=\"$('#hud_recent_calls_details').slideToggle('fast');\"><span class='fas fa-ellipsis-h'></span></span>";
|
echo "<span class='hud_expander' onclick=\"$('#hud_recent_calls_details').slideToggle('fast');\"><span class='fas fa-ellipsis-h'></span></span>";
|
||||||
echo "</div>\n";
|
echo "</div>\n";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue