From 48b4eaacd6b35d07de145b9b2fdec5603ec8dc12 Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Tue, 24 Mar 2015 17:02:04 -0400 Subject: [PATCH] Squashed ob_end_flush(): failed to delete and flush buffer warning --- airtime_mvc/application/common/FileIO.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/application/common/FileIO.php b/airtime_mvc/application/common/FileIO.php index 2c7724757..4d1ffd68c 100644 --- a/airtime_mvc/application/common/FileIO.php +++ b/airtime_mvc/application/common/FileIO.php @@ -65,7 +65,9 @@ class Application_Common_FileIO //We can have multiple levels of output buffering. Need to //keep looping until all have been disabled!!! //http://www.php.net/manual/en/function.ob-end-flush.php - while (@ob_end_flush()); + while (ob_get_level() > 0) { + ob_end_flush(); + } // NOTE: We can't use fseek here because it does not work with streams // (a.k.a. Files stored in the cloud)