mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 04:19:41 +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';
|
$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']))
|
isset($GLOBALS['phpgw_info']['user']['preferences']['common']['template_set']))
|
||||||
{
|
{
|
||||||
$GLOBALS['phpgw_info']['server']['template_set'] = $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