summaryrefslogtreecommitdiff
path: root/it_dbi.class
diff options
context:
space:
mode:
authorChristian Schneider2020-06-26 08:50:58 +0200
committerChristian Schneider2020-06-26 08:50:58 +0200
commit7c7cc5a83303dad6d5920cb87a00cac9a6ad626d (patch)
tree001cea03e22c925fbbd64b6e7181fe159ded6726 /it_dbi.class
parentcd76f06c9d8240cec15c51f33a2b8b09946c3e53 (diff)
downloaditools-7c7cc5a83303dad6d5920cb87a00cac9a6ad626d.tar.gz
itools-7c7cc5a83303dad6d5920cb87a00cac9a6ad626d.tar.bz2
itools-7c7cc5a83303dad6d5920cb87a00cac9a6ad626d.zip
Register fields added by _read_postprocess() so they get clear()ed
Diffstat (limited to 'it_dbi.class')
-rw-r--r--it_dbi.class5
1 files changed, 5 insertions, 0 deletions
diff --git a/it_dbi.class b/it_dbi.class
index 6d0cdeb..00d5c99 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -730,8 +730,13 @@ function iterate()
unset($this->_data['dyncols']);
foreach (static::_read_postprocess($this->_data) as $field => $value)
+ {
$this->$field = (isset($value) && $this->_convertfunc[$field]) ? ($this->_data[$field] = $this->_convertfunc[$field]($value)) : $value;
+ if (!array_key_exists($field, $this->_data)) # Register fields added by _read_postprocess() so they get clear()ed
+ $this->_data[$field] = $value;
+ }
+
if ($localizedfields)
{
$lang = T_lang();