From: Florian Hülsmann Date: Tue, 22 May 2012 11:10:42 +0000 (+0200) Subject: prevent apps from printing output from app.php X-Git-Tag: v4.5.0beta1~74^2~430^2~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d2e2a2b2c0a044113082440b60c50f8c3f7bdfdc;p=nextcloud-server.git prevent apps from printing output from app.php --- diff --git a/lib/app.php b/lib/app.php index 8ec042ddd60..04fc264d11a 100644 --- a/lib/app.php +++ b/lib/app.php @@ -63,11 +63,14 @@ class OC_App{ // The rest comes here $apps = self::getEnabledApps(); + // prevent app.php from printing output + ob_start(); foreach( $apps as $app ){ if((is_null($types) or self::isType($app,$types))){ self::loadApp($app); } } + ob_end_clean(); self::$init = true;