diff --git a/web/zm_html_view_video.php b/web/zm_html_view_video.php index e98991638..456409f7b 100644 --- a/web/zm_html_view_video.php +++ b/web/zm_html_view_video.php @@ -81,7 +81,7 @@ if ( $dir = opendir( $event_dir ) ) closedir( $dir ); } -if ( isset($download) ) +if ( !empty($download) ) { header( "Content-disposition: attachment; filename=".$video_files[$download]."; size=".filesize($video_files[$download]) ); readfile( $video_files[$download] );