From fa225273bf8d3294b950d7f5dc632111edaf4e23 Mon Sep 17 00:00:00 2001 From: stan Date: Thu, 9 Nov 2006 10:56:28 +0000 Subject: [PATCH] Fixed incorrect check on download query parm. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2044 e3e1d417-86f3-4887-817a-d78f3d33393f --- web/zm_html_view_video.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] );