diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-09-01 15:36:07 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-09-01 15:36:52 +0200 |
commit | a7255181ad8218543c34c9637477b31210768699 (patch) | |
tree | 5a3e4f6be113d7dea01be50ff0f4cb27ce40f7d5 /lib/base.php | |
parent | ef8cf87f49a1ab0f8f0ab87a82580d4cebebfc1c (diff) | |
download | nextcloud-server-a7255181ad8218543c34c9637477b31210768699.tar.gz nextcloud-server-a7255181ad8218543c34c9637477b31210768699.zip |
fix autoloader throwing errors for non-oc classes
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php index fb83f6ea0a4..bfefa1425ab 100644 --- a/lib/base.php +++ b/lib/base.php @@ -91,6 +91,8 @@ class OC{ } elseif(strpos($className,'Test_')===0){ $path = 'tests/lib/'.strtolower(str_replace('_','/',substr($className,5)) . '.php'); + }else{ + return false; } if($fullPath = stream_resolve_include_path($path)){ |