From c8941610606008624a44bd5caa0a75424452d2d6 Mon Sep 17 00:00:00 2001 From: fusionate Date: Wed, 10 May 2023 22:38:11 +0000 Subject: [PATCH] Dashboard - System Status: Updates for PHP 8.1 --- app/system/resources/dashboard/system_status.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/system/resources/dashboard/system_status.php b/app/system/resources/dashboard/system_status.php index 5bf05a01d3..0760f25719 100644 --- a/app/system/resources/dashboard/system_status.php +++ b/app/system/resources/dashboard/system_status.php @@ -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 "\n"; echo ""; - $n++; + //$n++; echo ""; echo "\n"; -?> +?> \ No newline at end of file