From fa7f0a9f88cac531b0823e3a4d734d8ac80ac4bd Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Mon, 17 Sep 2001 13:21:40 +0000 Subject: [PATCH] Fix possible undefined template set var --- phpgwapi/inc/class.common.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index 2024c0190c..7f563fde13 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -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'];