瀏覽代碼

add additional type check

tags/v7.0.0alpha2
Georg Ehrke 10 年之前
父節點
當前提交
498aa66648
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      lib/autoloader.php

+ 1
- 1
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');

Loading…
取消
儲存