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