summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-12-08 10:18:34 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-01-07 21:29:45 +0100
commit0e561afe79e7da44afef285e49ef6e0851db25f0 (patch)
tree80878571c84db82c387a32b18c89e4f4afe0c3b9 /lib
parent1cc6fddead3f71d170557e99ef8676724cb58a6e (diff)
downloadnextcloud-server-0e561afe79e7da44afef285e49ef6e0851db25f0.tar.gz
nextcloud-server-0e561afe79e7da44afef285e49ef6e0851db25f0.zip
Check if app does exists
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index 2cace2a0a06..d6ef01ccbf7 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;
}