Check if app does exists

This commit is contained in:
Lukas Reschke 2015-12-08 10:18:34 +01:00 committed by Roeland Jago Douma
parent 1cc6fddead
commit 0e561afe79
1 changed files with 6 additions and 1 deletions

View File

@ -469,7 +469,12 @@ class OC {
public static function loadAppClassPaths() {
foreach (OC_APP::getEnabledApps() as $app) {
$file = OC_App::getAppPath($app) . '/appinfo/classpath.php';
$appPath = OC_App::getAppPath($app);
if ($appPath === false) {
continue;
}
$file = $appPath . '/appinfo/classpath.php';
if (file_exists($file)) {
require_once $file;
}