diff --git a/web/skins/classic/views/monitorprobe.php b/web/skins/classic/views/monitorprobe.php index b02450384..7bb15a68d 100644 --- a/web/skins/classic/views/monitorprobe.php +++ b/web/skins/classic/views/monitorprobe.php @@ -18,7 +18,7 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. // -if ( !canEdit('Monitors') ) { +if (!canEdit('Monitors')) { $view = 'error'; return; } @@ -31,11 +31,9 @@ function probeV4L() { $command = getZmuCommand(' --query --device'); if ( !empty($_REQUEST['device']) ) $command .= '='.escapeshellarg($_REQUEST['device']); - $result = exec(escapeshellcmd($command), $output, $status); - if ( $status ) { - ZM\Error("Unable to probe local cameras using $command, status is '$status' " . implode("\n",$output)); - return $cameras; + if ($status) { + ZM\Warning("Errors while probe local cameras using $command, status is '$status' " . implode("\n", $output)); } $monitors = array(); @@ -325,15 +323,15 @@ xhtmlHeaders(__FILE__, translate('MonitorProbe') );