- Fixed corrupt $menuaction reporting showing wrong message along with it ... make sense ? Good ... wanna explain it to me sometime ?

- Changed to use proper phpgwapi redirect
This commit is contained in:
jengo 2001-11-01 04:16:35 +00:00
parent 31287b0095
commit 4e97c08c23

View File

@ -72,15 +72,17 @@
}
else
{
Header('Location: ' . $GLOBALS['phpgw']->link('/home.php'));
$GLOBALS['phpgw']->log->message(array(
'text' => 'W-BadmenuactionVariable, menuaction missing or corrupt: %1',
'p1' => $menuaction,
'line' => __LINE__,
'file' => __FILE__
if (! $app || ! $class || ! $method)
{
$GLOBALS['phpgw']->log->message(array(
'text' => 'W-BadmenuactionVariable, menuaction missing or corrupt: %1',
'p1' => $menuaction,
'line' => __LINE__,
'file' => __FILE__
));
}
));
if (! is_array($obj->public_functions) || ! $obj->public_functions[$method])
if (! is_array($obj->public_functions) || ! $obj->public_functions[$method] && $method)
{
$GLOBALS['phpgw']->log->message(array(
'text' => 'W-BadmenuactionVariable, attempted to access private method: %1',
@ -91,6 +93,7 @@
}
$GLOBALS['phpgw']->log->commit();
$phpgw->redirect($GLOBALS['phpgw']->link('/home.php'));
/*
$_obj = CreateObject('home.home');
$_obj->get_list();