Dashboard - System Status: Updates for PHP 8.1

This commit is contained in:
fusionate
2023-05-10 22:38:11 +00:00
parent 4de76b44f2
commit c894161060

View File

@@ -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";
?>
?>