From 498aa6664807cca87a1ca8d2fd0d3d609430bae8 Mon Sep 17 00:00:00 2001
From: Georg Ehrke <developer@georgehrke.com>
Date: Fri, 6 Jun 2014 09:33:34 +0200
Subject: [PATCH] add additional type check

---
 lib/autoloader.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/autoloader.php b/lib/autoloader.php
index da20a2a025..54f01d9be9 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');
-- 
GitLab