From 0cd0e810ade051163595057a312d24f07a22bf85 Mon Sep 17 00:00:00 2001 From: jengo Date: Thu, 1 Mar 2001 18:17:33 +0000 Subject: [PATCH] Fixed a php warning being spit out with new users --- phpgwapi/inc/functions.inc.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/phpgwapi/inc/functions.inc.php b/phpgwapi/inc/functions.inc.php index c8c5fb272a..f119686eed 100644 --- a/phpgwapi/inc/functions.inc.php +++ b/phpgwapi/inc/functions.inc.php @@ -311,6 +311,18 @@ /*************************************************************************\ * These lines load up the themes * \*************************************************************************/ + if (! $phpgw_info['user']['preferences']['common']['theme']) + { + if ($phpgw_info['server']['template_set'] == 'user_choice') + { + $phpgw_info['user']['preferences']['common']['theme'] = 'default'; + } + else + { + $phpgw_info['user']['preferences']['common']['theme'] = $phpgw_info['server']['template_set']; + } + } + include(PHPGW_SERVER_ROOT . "/phpgwapi/themes/" . $phpgw_info["user"]["preferences"]["common"]["theme"] . ".theme");