Catch apps which have been removed manually

This commit is contained in:
Lukas Reschke 2015-09-15 12:09:48 +02:00
parent 4680691ca6
commit 8e1b403b16
1 changed files with 4 additions and 1 deletions

View File

@ -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