From 8963b032de7c14151d9432ca208038c4f515d961 Mon Sep 17 00:00:00 2001 From: Henry Sudhof Date: Thu, 18 Oct 2007 18:25:06 +0000 Subject: #14834 - at least probably git-svn-id: file:///svn/phpbb/trunk@8203 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_user.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'phpBB/includes') diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index 95a92d93af..32dee77df6 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -2035,7 +2035,7 @@ function avatar_gallery($category, $avatar_select, $items_per_column, $block_var } @ksort($avatar_list); - + $category = (!$category) ? key($avatar_list) : $category; $avatar_categories = array_keys($avatar_list); @@ -2050,8 +2050,8 @@ function avatar_gallery($category, $avatar_select, $items_per_column, $block_var 'S_IN_AVATAR_GALLERY' => true, 'S_CAT_OPTIONS' => $s_category_options) ); - - $avatar_list = $avatar_list[$category]; + + $avatar_list = (isset($avatar_list[$category])) ? $avatar_list[$category] : array(); foreach ($avatar_list as $avatar_row_ary) { -- cgit v1.2.1