Kaynağa Gözat

fixed warning with SystemObject cache

Piotr Labudda 8 yıl önce
ebeveyn
işleme
93f8bc595d
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  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]);
 	}