From 5e8ba6473ff72fffcdb0eacbeb00df0e18f66f98 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Wed, 13 Apr 2011 15:41:57 +0000 Subject: Suppress warning if no fields where found in table --- it_dbi.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_dbi.class') 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 -- cgit v1.2.3