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:
parent
b82ceaeb80
commit
fa225273bf
|
@ -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] );
|
||||||
|
|
Loading…
Reference in New Issue