on line 2198 in /components/com_fabrik/fabrik_table.class.phpHi!
I have just a little, simple contactform.
When i submit the form, i'll get this error:
------------------
Warning: Invalid argument supplied for foreach() in /var/www/virtual/mydomain.com/htdocs/components/com_fabrik/fabrik_table.class.php on line 2203
------------------
Line 2203 says:
------------------
foreach ($this->_oForm->_groups as $oGroup) {
------------------
Any ideas?
Fabrik 1.0.6
Joomla 1.0.15
Thanx!
Mike
HTML:
function getTableFilters2( )
{
$aFilters = array();
$form =& $this->getForm();
$form->getFormGroupsHiarachy();
foreach ($this->_oForm->_groups as $oGroup) {
foreach ($oGroup->_aElements as $oElement) {
if ($oElement->filter_type <> '' && $oElement->can_filter == '1') {
$aFilters[] = $oElement;
}
}
}
return $aFilters;
}
HTML:
function getTableFilters2( )
{
$aFilters = array();
$form =& $this->getForm();
$form->getFormGroupsHiarachy();
if (is_array($this))
{
foreach ($this->_oForm->_groups as $oGroup) {
foreach ($oGroup->_aElements as $oElement) {
if ($oElement->filter_type <> '' && $oElement->can_filter == '1') {
$aFilters[] = $oElement;
}
}
}
}
return $aFilters;
}
best regards