+ [refac] check if the label already used.

This commit is contained in:
liugang
2024-11-20 15:42:49 +08:00
committed by 朱金勇
parent a5be156308
commit ccc5d3a888
+1
View File
@@ -709,6 +709,7 @@ class cache
{
if(empty($label)) return $this->log('The label is empty', __FILE__, __LINE__);
if(empty($this->key)) return $this->log('The key is empty', __FILE__, __LINE__);
if(isset($this->labels[$label])) return $this->log("Label {$label} already used", __FILE__, __LINE__);
$this->labels[$label] = $this->key;
return $this;
}