From f8aabe317e7a7997594bc124aa17fd4d6442dfd1 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 9 Aug 2018 17:36:23 +0200 Subject: iterator should clear dynfields from previous iteration, may be missing in current one --- it_dbi.class | 3 +++ 1 file changed, 3 insertions(+) (limited to 'it_dbi.class') diff --git a/it_dbi.class b/it_dbi.class index 426e653..be802b7 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -680,6 +680,9 @@ function iterate() foreach ($localizedfields as $field => $dummy) unset($this->$field); + foreach ((array)$this->_dyndata as $field => $dummy) + unset($this->$field); + foreach (($t = $this->_data['dyncols']) ? ($this->_dyndata = (array)json_decode($t, true)) : [] as $field => $value) $this->_data[$field] = $value; unset($this->_data['dyncols']); -- cgit v1.2.3