Skip to content

Commit

Permalink
Removed last referance to 'lastTimeChecked'
Browse files Browse the repository at this point in the history
  • Loading branch information
JahleelAbraham committed Mar 21, 2024
1 parent 4896efd commit 7551f3d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions www/ajax/ipcameracheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7551f3d

Please sign in to comment.