From b3e9a49642b163eb0683b012b997c0dff444c037 Mon Sep 17 00:00:00 2001 From: mattab Date: Fri, 12 Dec 2014 15:38:42 +1300 Subject: [PATCH] Fixes #6845 -silent notice --- libs/upgradephp/upgrade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/upgradephp/upgrade.php b/libs/upgradephp/upgrade.php index 322ffd0455e..903611c9705 100644 --- a/libs/upgradephp/upgrade.php +++ b/libs/upgradephp/upgrade.php @@ -633,8 +633,8 @@ function _readfile($filename, $byteStart, $byteEnd, $useIncludePath = false, $co for ($pos = $byteStart; $pos < $byteEnd && !feof($handle); $pos = ftell($handle)) { echo fread($handle, min(8192, $byteEnd - $pos)); - ob_flush(); - flush(); + @ob_flush(); + @flush(); } fclose($handle);