mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 18:03:39 +01:00
Fix possible undefined template set var
This commit is contained in:
parent
9f4bea61fa
commit
fa7f0a9f88
@ -649,7 +649,8 @@
|
||||
$GLOBALS['phpgw_info']['server']['usrtplchoice'] = 'user_choice';
|
||||
}
|
||||
|
||||
if ($GLOBALS['phpgw_info']['server']['template_set'] == 'user_choice' &&
|
||||
if (($GLOBALS['phpgw_info']['server']['template_set'] == 'user_choice' ||
|
||||
!isset($GLOBALS['phpgw_info']['server']['template_set'])) &&
|
||||
isset($GLOBALS['phpgw_info']['user']['preferences']['common']['template_set']))
|
||||
{
|
||||
$GLOBALS['phpgw_info']['server']['template_set'] = $GLOBALS['phpgw_info']['user']['preferences']['common']['template_set'];
|
||||
|
Loading…
Reference in New Issue
Block a user