mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Dashboard - System Status: Updates for PHP 8.1
This commit is contained in:
@@ -201,7 +201,7 @@
|
||||
}
|
||||
|
||||
//channel count
|
||||
if ($fp) {
|
||||
if (isset($fp)) {
|
||||
$tmp = event_socket_request($fp, 'api status');
|
||||
$matches = Array();
|
||||
preg_match("/(\d+)\s+session\(s\)\s+\-\speak/", $tmp, $matches);
|
||||
@@ -215,7 +215,7 @@
|
||||
}
|
||||
|
||||
//registration count
|
||||
if ($fp && file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/registrations/")) {
|
||||
if (isset($fp) && file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/registrations/")) {
|
||||
$registration = new registrations;
|
||||
$registrations = $registration->count();
|
||||
$tr_link = "href='".PROJECT_PATH."/app/registrations/registrations.php'";
|
||||
@@ -228,8 +228,8 @@
|
||||
|
||||
echo "</table>\n";
|
||||
echo "</div>";
|
||||
$n++;
|
||||
//$n++;
|
||||
|
||||
echo "<span class='hud_expander' onclick=\"$('#hud_system_status_details').slideToggle('fast');\"><span class='fas fa-ellipsis-h'></span></span>";
|
||||
echo "</div>\n";
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user