summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_dbi.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_dbi.class b/it_dbi.class
index a8503d3..7424e57 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -767,7 +767,7 @@ function _get_field_info()
}
# Consider all fields which have _{localized_defaultlanguage} suffix as localized
- foreach (preg_grep('/_' . $this->_p['localized_defaultlanguage'] . '$/', array_keys($this->_fields)) as $field)
+ foreach (preg_grep('/_' . $this->_p['localized_defaultlanguage'] . '$/', array_keys((array)$this->_fields)) as $field)
$this->_localizedfields[substr($field, 0, -1 - strlen($this->_p['localized_defaultlanguage']))] = true;
$state = it_dbi::_state_get($dbid); # State could have been modified by query above