From ef1c96f268844cea43be3a24664646e07a9f9bed Mon Sep 17 00:00:00 2001 From: skeeter Date: Sun, 30 Dec 2001 17:03:26 +0000 Subject: [PATCH] I can't totally remember if the menuaction is always passed as a GET var, but this is more cleaner. --- phpgwapi/inc/class.nextmatchs.inc.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/phpgwapi/inc/class.nextmatchs.inc.php b/phpgwapi/inc/class.nextmatchs.inc.php index 3ef43fd072..60a38b9670 100644 --- a/phpgwapi/inc/class.nextmatchs.inc.php +++ b/phpgwapi/inc/class.nextmatchs.inc.php @@ -59,9 +59,9 @@ $this->maxmatches = 15; } - if(isset($GLOBALS['menuaction'])) + if(isset($GLOBALS['HTTP_GET_VARS']['menuaction'])) { - $this->action = $GLOBALS['menuaction']; + $this->action = $GLOBALS['HTTP_GET_VARS']['menuaction']; } } @@ -109,7 +109,10 @@ @reset($extravars); while(list($var,$value) = each($extravars)) { - $t_extras[] = $var.'='.$value; + if($var != 'menuaction') + { + $t_extras[] = $var.'='.$value; + } } $extras = implode($t_extras,'&'); }