From c95ae7fb21ec730b140e1e14f84db095d2f56e9e Mon Sep 17 00:00:00 2001 From: Bart van Bragt Date: Thu, 14 Feb 2002 16:09:36 +0000 Subject: [PATCH] Use default style if user doesn't have a theme set (shouldn't happen) git-svn-id: file:///svn/phpbb/trunk@2145 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 35af3e5de3..10a12f9c6a 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -255,7 +255,7 @@ function init_userprefs($userdata) // if ( !$board_config['override_user_style'] ) { - if ( $userdata['user_id'] != ANONYMOUS && isset($userdata['user_style']) ) + if ( $userdata['user_id'] != ANONYMOUS && $userdata['user_style'] > 0 ) { if ( $theme = setup_style($userdata['user_style']) ) { @@ -1049,4 +1049,4 @@ function phpbb_preg_quote($str, $delimiter) return $text; } -?> \ No newline at end of file +?>