Fixed incorrect check on download query parm.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2044 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2006-11-09 10:56:28 +00:00
parent b82ceaeb80
commit fa225273bf
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ if ( $dir = opendir( $event_dir ) )
closedir( $dir ); closedir( $dir );
} }
if ( isset($download) ) if ( !empty($download) )
{ {
header( "Content-disposition: attachment; filename=".$video_files[$download]."; size=".filesize($video_files[$download]) ); header( "Content-disposition: attachment; filename=".$video_files[$download]."; size=".filesize($video_files[$download]) );
readfile( $video_files[$download] ); readfile( $video_files[$download] );