diff --git a/web/views/view_video.php b/web/views/view_video.php index 92e7eec0f..98c0ff340 100644 --- a/web/views/view_video.php +++ b/web/views/view_video.php @@ -40,12 +40,12 @@ if ( ! empty($_REQUEST['eid'] ) ) { $path = $Event->Path().'/'.$Event->DefaultVideo(); Debug("Path: $path"); } else { - $errorText = "No video path"; + $errorText = 'No video path'; } if ( $errorText ) { Error( $errorText ); - header ('HTTP/1.0 404 Not Found'); + header('HTTP/1.0 404 Not Found'); die(); } @@ -53,7 +53,7 @@ $size = filesize($path); $fh = @fopen($path,'rb'); if ( ! $fh ) { - header ("HTTP/1.0 404 Not Found"); + header('HTTP/1.0 404 Not Found'); die(); } @@ -86,7 +86,6 @@ if ( $begin > 0 || $end < $size-1 ) { header('HTTP/1.0 200 OK'); } - // Apparently without these we get a few extra bytes of output at the end... ob_clean(); flush();