summaryrefslogtreecommitdiffstats
path: root/lib/autoloader.php
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2014-06-06 09:33:34 +0200
committerGeorg Ehrke <developer@georgehrke.com>2014-06-06 09:33:34 +0200
commit498aa6664807cca87a1ca8d2fd0d3d609430bae8 (patch)
tree53e91cd72acc2551a911198c8892d9fbc69d993e /lib/autoloader.php
parent0fe8f77c1748d167e115680346ae98bba78da38d (diff)
downloadnextcloud-server-498aa6664807cca87a1ca8d2fd0d3d609430bae8.tar.gz
nextcloud-server-498aa6664807cca87a1ca8d2fd0d3d609430bae8.zip
add additional type check
Diffstat (limited to 'lib/autoloader.php')
-rw-r--r--lib/autoloader.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/autoloader.php b/lib/autoloader.php
index da20a2a0250..54f01d9be94 100644
--- a/lib/autoloader.php
+++ b/lib/autoloader.php
@@ -90,7 +90,7 @@ class Autoloader {
list(, $app, $rest) = explode('\\', $class, 3);
$app = strtolower($app);
$appPath = \OC_App::getAppPath($app);
- if (stream_resolve_include_path($appPath)) {
+ if ($appPath && stream_resolve_include_path($appPath)) {
$paths[] = $appPath . '/' . strtolower(str_replace('\\', '/', $rest) . '.php');
// If not found in the root of the app directory, insert '/lib' after app id and try again.
$paths[] = $appPath . '/lib/' . strtolower(str_replace('\\', '/', $rest) . '.php');