diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-06-19 22:30:47 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-06-19 22:34:36 +0200 |
commit | 11dc3bb0e15753e54ceca74300963202b397092b (patch) | |
tree | f5ac385ed29b7ea65ff0fda3a77b38c63ac5e12e /lib/app.php | |
parent | 07f2fcf7ec249d45dfe1a4e38439d1e756a0bc86 (diff) | |
download | nextcloud-server-11dc3bb0e15753e54ceca74300963202b397092b.tar.gz nextcloud-server-11dc3bb0e15753e54ceca74300963202b397092b.zip |
only load apps if they exist
Diffstat (limited to 'lib/app.php')
-rw-r--r-- | lib/app.php | 4 |
1 files changed, 3 insertions, 1 deletions
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" ); + } } } |