diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-09-15 12:09:48 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-09-15 12:10:23 +0200 |
commit | 8e1b403b16e78a6e748144feacdac76db72c1130 (patch) | |
tree | 1ce6250b2290ab90e7c405a2a6780ca267dfa32e | |
parent | 4680691ca6912cb5448cc1a09250464b28396474 (diff) | |
download | nextcloud-server-8e1b403b16e78a6e748144feacdac76db72c1130.tar.gz nextcloud-server-8e1b403b16e78a6e748144feacdac76db72c1130.zip |
Catch apps which have been removed manually
-rw-r--r-- | lib/private/app.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/app.php b/lib/private/app.php index 58ae770fe25..e42fba525e4 100644 --- a/lib/private/app.php +++ b/lib/private/app.php @@ -104,7 +104,10 @@ class OC_App { // Add each apps' folder as allowed class path foreach($apps as $app) { - \OC::$loader->addValidRoot(self::getAppPath($app)); + $path = self::getAppPath($app); + if($path !== false) { + \OC::$loader->addValidRoot($path); + } } // prevent app.php from printing output |