mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
prevent PHP Noticed: undefined index: menuaction
This commit is contained in:
parent
94bf204388
commit
6066cbaad4
@ -85,7 +85,8 @@ $GLOBALS['egw_info']['server']['versions']['header'] = '1.29';
|
|||||||
|
|
||||||
if(!isset($GLOBALS['egw_info']['flags']['noapi']) || !$GLOBALS['egw_info']['flags']['noapi'])
|
if(!isset($GLOBALS['egw_info']['flags']['noapi']) || !$GLOBALS['egw_info']['flags']['noapi'])
|
||||||
{
|
{
|
||||||
if (substr($_SERVER['SCRIPT_NAME'],-7) != 'dav.php' && substr($_GET['menuaction'],-10) != '_hooks.log') // dont do it for webdav/groupdav, as we can not safely switch it off again
|
if (substr($_SERVER['SCRIPT_NAME'],-7) != 'dav.php' && // dont do it for webdav/groupdav, as we can not safely switch it off again
|
||||||
|
(!isset($_GET['menuaction']) || substr($_GET['menuaction'],-10) != '_hooks.log'))
|
||||||
{
|
{
|
||||||
ob_start(); // to prevent error messages to be send before our headers
|
ob_start(); // to prevent error messages to be send before our headers
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user