diff options
author | Urban Müller | 2018-08-09 17:36:23 +0200 |
---|---|---|
committer | Urban Müller | 2018-08-09 17:36:23 +0200 |
commit | f8aabe317e7a7997594bc124aa17fd4d6442dfd1 (patch) | |
tree | ed7d384ba76443d86a5ab2bf87471d082d63b90f /it_dbi.class | |
parent | 8c399fb12571ae5950a1e3fe186e999abdc0b504 (diff) | |
download | itools-f8aabe317e7a7997594bc124aa17fd4d6442dfd1.tar.gz itools-f8aabe317e7a7997594bc124aa17fd4d6442dfd1.tar.bz2 itools-f8aabe317e7a7997594bc124aa17fd4d6442dfd1.zip |
iterator should clear dynfields from previous iteration, may be missing in current one
Diffstat (limited to 'it_dbi.class')
-rw-r--r-- | it_dbi.class | 3 |
1 files changed, 3 insertions, 0 deletions
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']); |