summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-09-01 15:36:07 +0200
committerRobin Appelman <icewind@owncloud.com>2012-09-01 15:36:52 +0200
commita7255181ad8218543c34c9637477b31210768699 (patch)
tree5a3e4f6be113d7dea01be50ff0f4cb27ce40f7d5 /lib/base.php
parentef8cf87f49a1ab0f8f0ab87a82580d4cebebfc1c (diff)
downloadnextcloud-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.php2
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)){