mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
Fixed a php warning being spit out with new users
This commit is contained in:
parent
af513b2a9d
commit
0cd0e810ad
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user