소스 검색

fixed schema factory cache

Piotr Labudda 8 년 전
부모
커밋
c44d11edfb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      SE/se-lib/SchemaFactory.php

+ 1 - 1
SE/se-lib/SchemaFactory.php

@@ -5,7 +5,7 @@ class SchemaFactory {
 	public static function loadDefaultObject($namespace) {
 		static $_cache = [];
 		$clsName = str_replace('/', '_', $namespace);
-		if (array_key_exists($name, $_cache)) return $_cache[$clsName];
+		if (array_key_exists($clsName, $_cache)) return $_cache[$clsName];
 		$objClassName = "Schema_{$clsName}StorageAcl";
 		if (!Lib::tryLoadClass($objClassName)) throw new HttpException("Not implemented - storage object not found '{$namespace}'", 501);
 		$_cache[$clsName] = new $objClassName();