mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
try to cope silently with removed app felamimail set as default_app
This commit is contained in:
parent
2a959eb0d2
commit
e0cf9c169d
11
index.php
11
index.php
@ -114,6 +114,17 @@ if($app == 'home' && !$api_requested && !($windowed && $_GET['cd'] == 'yes' && !
|
|||||||
}
|
}
|
||||||
if($GLOBALS['egw_info']['user']['preferences']['common']['default_app'] && !$hasupdates)
|
if($GLOBALS['egw_info']['user']['preferences']['common']['default_app'] && !$hasupdates)
|
||||||
{
|
{
|
||||||
|
// try to switch to mail on startup, if felamimail was called
|
||||||
|
if ($GLOBALS['egw_info']['user']['preferences']['common']['default_app']=='felamimail' && !isset($GLOBALS['egw_info']['user']['apps']['felamimail']) && isset($GLOBALS['egw_info']['user']['apps']['mail']))
|
||||||
|
{
|
||||||
|
$GLOBALS['egw_info']['user']['preferences']['common']['default_app'] ='mail';
|
||||||
|
if (isset($GLOBALS['egw']->preferences))
|
||||||
|
{
|
||||||
|
$GLOBALS['egw']->preferences->add('common','default_app','mail','user');
|
||||||
|
// save prefs
|
||||||
|
$GLOBALS['egw']->preferences->save_repository(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
egw::redirect(egw_framework::index($GLOBALS['egw_info']['user']['preferences']['common']['default_app']),$GLOBALS['egw_info']['user']['preferences']['common']['default_app']);
|
egw::redirect(egw_framework::index($GLOBALS['egw_info']['user']['preferences']['common']['default_app']),$GLOBALS['egw_info']['user']['preferences']['common']['default_app']);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user