Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-06-20 00:30:47 +0400
committerRobin Appelman <icewind1991@gmail.com>2011-06-20 00:34:36 +0400
commit11dc3bb0e15753e54ceca74300963202b397092b (patch)
treef5ac385ed29b7ea65ff0fda3a77b38c63ac5e12e /lib
parent07f2fcf7ec249d45dfe1a4e38439d1e756a0bc86 (diff)
only load apps if they exist
Diffstat (limited to 'lib')
-rw-r--r--lib/app.php4
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" );
+ }
}
}