From 8371df481dfd6bbcf3f2d005d5996a6506d11f66 Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Sat, 24 Jun 2017 11:58:40 +0200 Subject: [PATCH] Prevent warnings when buffering is disabled --- auth.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/auth.php b/auth.php index f3e858d..1e7bdaf 100755 --- a/auth.php +++ b/auth.php @@ -18,8 +18,9 @@ */ if (defined('headless')) { - ob_get_contents(); - ob_end_clean(); + if (ob_get_level()) { + ob_end_clean(); + } error_reporting(0); } define('ROOT_DIR', __DIR__);