From b4f2cfaae417a4fcacfc3121dc7c7d7fbf566e49 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sun, 31 Mar 2002 14:22:08 +0000 Subject: [PATCH] php3 failed to set the controls, now checking for is_array vs. != '' --- phpgwapi/inc/class.portalbox.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.portalbox.inc.php b/phpgwapi/inc/class.portalbox.inc.php index b5fae989c9..d663c89a73 100755 --- a/phpgwapi/inc/class.portalbox.inc.php +++ b/phpgwapi/inc/class.portalbox.inc.php @@ -125,7 +125,9 @@ function set_controls($control='',$control_param='') { - if($control != '' && $control_param != '') +// echo '
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)); }