php3 failed to set the controls, now checking for is_array vs. != ''

This commit is contained in:
Miles Lott 2002-03-31 14:22:08 +00:00
parent 87f3a8e6b8
commit b4f2cfaae4

View File

@ -125,7 +125,9 @@
function set_controls($control='',$control_param='')
{
if($control != '' && $control_param != '')
// echo '<br>Control: ' . $control . ', control_param="' . $control_param . '"';
// if($control != '' && $control_param != '')
if($control != '' && is_array($control_param))
{
$this->setvar($control,$GLOBALS['phpgw']->link($control_param['url'],'app='.$control_param['app'].'&control='.$control));
}