Преглед изворни кода

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]);
 	}