diff --git a/web/skins/classic/views/onvifprobe.php b/web/skins/classic/views/onvifprobe.php index 7f8d6ed7f..01e52ee38 100644 --- a/web/skins/classic/views/onvifprobe.php +++ b/web/skins/classic/views/onvifprobe.php @@ -27,6 +27,8 @@ if ( !canEdit( 'Monitors' ) ) $cameras = array(); $cameras[0] = translate('ChooseDetectedCamera'); +$profiles = array(); +$profiles[0] = translate('ChooseDetectedProfile'); function execONVIF( $cmd ) { $shell_command = escapeshellcmd(ZM_PATH_BIN . "/zmonvif-probe.pl $cmd"); @@ -255,11 +257,11 @@ else if($_REQUEST['step'] == "2") $monitor['Path'] = $profile['Path']; // $sourceDesc = htmlspecialchars(serialize($monitor)); $sourceDesc = base64_encode(serialize($monitor)); - $cameras[$sourceDesc] = $sourceString; + $profiles[$sourceDesc] = $sourceString; } - if ( count($cameras) <= 0 ) - $cameras[0] = translate('NoDetectedCameras'); + if ( count($profiles) <= 0 ) + $profiles[0] = translate('NoDetectedProfiles'); ?>
@@ -276,7 +278,7 @@ else if($_REQUEST['step'] == "2")- +