From 0e561afe79e7da44afef285e49ef6e0851db25f0 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Tue, 8 Dec 2015 10:18:34 +0100 Subject: [PATCH] Check if app does exists --- lib/base.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/base.php b/lib/base.php index 2cace2a0a0..d6ef01ccbf 100644 --- a/lib/base.php +++ b/lib/base.php @@ -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; }