diff --git a/library/Director/CustomVariable/CustomVariableDictionary.php b/library/Director/CustomVariable/CustomVariableDictionary.php index c714a927..4ca1a457 100644 --- a/library/Director/CustomVariable/CustomVariableDictionary.php +++ b/library/Director/CustomVariable/CustomVariableDictionary.php @@ -20,7 +20,7 @@ class CustomVariableDictionary extends CustomVariable implements Countable } foreach ($this->value as $key => $value) { - if (! $value->equals($var->$key)) { + if (! $value->equals($var->getInternalValue($key))) { return false; } } @@ -91,6 +91,11 @@ class CustomVariableDictionary extends CustomVariable implements Countable return $this->value[$key]; } + public function getInternalValue($key) + { + return $this->value[$key]; + } + public function toConfigString() { return c::renderDictionary($this->value);