From b9671eacfa5a8d2b2cf11bcba8de7165d94df1cb Mon Sep 17 00:00:00 2001 From: skeeter Date: Mon, 25 Jun 2001 02:45:36 +0000 Subject: [PATCH] Fix for bug #435326. --- phpgwapi/inc/functions.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/functions.inc.php b/phpgwapi/inc/functions.inc.php index cbb33026c0..4e3e74cf69 100644 --- a/phpgwapi/inc/functions.inc.php +++ b/phpgwapi/inc/functions.inc.php @@ -436,11 +436,11 @@ if ($phpgw_info['server']['force_theme'] == 'user_choice') { - $theme_to_load = $phpgw_info['user']['preferences']['common']['theme']; + $theme_to_load = (isset($phpgw_info['user']['preferences']['common']['theme'])?$phpgw_info['user']['preferences']['common']['theme']:'default'); } else { - $theme_to_load = $phpgw_info['server']['force_theme']; + $theme_to_load = (isset($phpgw_info['server']['force_theme'])?$phpgw_info['server']['force_theme']:'default'); } if(@file_exists(PHPGW_SERVER_ROOT . '/phpgwapi/themes/' . $theme_to_load . '.theme'))