瀏覽代碼

fixed warning with SystemObject cache

Piotr Labudda 8 年之前
父節點
當前提交
93f8bc595d
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      SE/se-lib/Schema/SystemObjectStorageAcl.php

+ 1 - 0
SE/se-lib/Schema/SystemObjectStorageAcl.php

@@ -302,6 +302,7 @@ class Schema_SystemObjectStorageAcl extends Core_AclSimpleSchemaBase {
 	}
 
 	public function clearGetItemCache($pk = null) {
+		if (!$this->_cache) return;
 		if (!$pk) $this->_cache = [];
 		else if (array_key_exists($pk, $this->_cache)) unset($this->_cache[$pk]);
 	}