mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-10 16:08:34 +01:00
php3 failed to set the controls, now checking for is_array vs. != ''
This commit is contained in:
parent
87f3a8e6b8
commit
b4f2cfaae4
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user