From 7551f3de6f4730a8f17c3918cf9c3a22bf5cbd0a Mon Sep 17 00:00:00 2001 From: Jahleel Abraham Date: Thu, 21 Mar 2024 15:10:18 +0000 Subject: [PATCH] Removed last referance to 'lastTimeChecked' --- www/ajax/ipcameracheck.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/www/ajax/ipcameracheck.php b/www/ajax/ipcameracheck.php index e653e7dc..dfb04d47 100644 --- a/www/ajax/ipcameracheck.php +++ b/www/ajax/ipcameracheck.php @@ -44,11 +44,8 @@ private function initProc() $camera->checkConnection(); - $status_message = str_replace( //-> 10 as status to avoid the "changes saved successfully" popup - array("%TYPE%", "%TIME%"), - array("RTSP", $camera->info['connection_status']['lastTimeChecked']), - $camera->info['connection_status']['success'] ? AIP_CONNECTION_SUCCESS : AIP_CONNECTION_FAIL - ); + $status_message = str_replace("%TYPE%", str_replace("IP-", "", $camera->info['protocol']), + $camera->info['connection_status']['success'] ? AIP_CONNECTION_SUCCESS : AIP_CONNECTION_FAIL); echo $status_message; }