[Pkg-owncloud-commits] [owncloud] 18/223: add additional type check

David Prévot taffit at moszumanska.debian.org
Sun Jun 22 01:54:01 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 498aa6664807cca87a1ca8d2fd0d3d609430bae8
Author: Georg Ehrke <developer at georgehrke.com>
Date:   Fri Jun 6 09:33:34 2014 +0200

    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 da20a2a..54f01d9 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');

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list