From 116ee3e4335529176dc8f4a6c1b83aff955e6214 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Sat, 20 Nov 2010 03:56:34 +0000 Subject: [PATCH] MDL-25314 coding style improvement --- lib/filelib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/filelib.php b/lib/filelib.php index 5070a79ae20..bd2bc524b1b 100644 --- a/lib/filelib.php +++ b/lib/filelib.php @@ -1480,13 +1480,13 @@ function send_file_not_found() { * @return void */ function prepare_file_sending() { - $olddebug = error_reporting(0); - // We need to be able to send headers if (headers_sent()) { throw new file_serving_exception('Headers already sent, can not serve file, this is definitely a server configuration issue!'); } + $olddebug = error_reporting(0); + // this is weird, but browser that do not support gzip or deflate have session problems here, // let's try to work around it $bugalert = false; -- 2.43.0