From 11dc3bb0e15753e54ceca74300963202b397092b Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind1991@gmail.com>
Date: Sun, 19 Jun 2011 22:30:47 +0200
Subject: [PATCH] only load apps if they exist

---
 lib/app.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/app.php b/lib/app.php
index c2a850b6f6a..544c57c1d6f 100644
--- a/lib/app.php
+++ b/lib/app.php
@@ -60,7 +60,9 @@ class OC_APP{
 		$apps = OC_APPCONFIG::getApps();
 		foreach( $apps as $app ){
 			if( self::isEnabled( $app )){
-				require( "apps/$app/appinfo/app.php" );
+				if(is_file($SERVERROOT."/apps/$app/appinfo/app.php")){
+					require( "apps/$app/appinfo/app.php" );
+				}
 			}
 		}
 
-- 
GitLab