Fix possible undefined template set var

This commit is contained in:
Miles Lott 2001-09-17 13:21:40 +00:00
parent 9f4bea61fa
commit fa7f0a9f88

View File

@ -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'];