summaryrefslogtreecommitdiff
path: root/it_dbi.class
diff options
context:
space:
mode:
authorChristian Schneider2011-04-13 15:41:57 +0000
committerChristian Schneider2011-04-13 15:41:57 +0000
commit5e8ba6473ff72fffcdb0eacbeb00df0e18f66f98 (patch)
treec2a258241fdba72f3ddba7ae3426567f92d29d86 /it_dbi.class
parent8d4bd65f9d80902a8c82126648011e145f686cc1 (diff)
downloaditools-5e8ba6473ff72fffcdb0eacbeb00df0e18f66f98.tar.gz
itools-5e8ba6473ff72fffcdb0eacbeb00df0e18f66f98.tar.bz2
itools-5e8ba6473ff72fffcdb0eacbeb00df0e18f66f98.zip
Suppress warning if no fields where found in table
Diffstat (limited to 'it_dbi.class')
-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