Code: Select all
Warning: Invalid argument supplied for foreach() in /srv/www/htdocs/site2/lib/classes/module_support/modform.inc.php on line 456
Code: Select all
$smarty->assign('createlink', $this->CreateLink($id, 'addcategory', $returnid, 'Add Category', '', '', '', '', '', '', '');
I notice in the modform class/function that $params is being set to an array, but still this fails. I can put a test prior to line 456 as such and it goes away, but seems odd.
Code: Select all
if(!empty($params)){
- answered my own problem, but could this be a bug? or undocumented feature?
Solution - It appears that the params field is required in the CreateLink function, even if you just put array() in there it works. I'll still post this to help others.