Fixed a php warning being spit out with new users

This commit is contained in:
jengo 2001-03-01 18:17:33 +00:00
parent af513b2a9d
commit 0cd0e810ad

View File

@ -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");