aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2007-10-18 18:25:06 +0000
committerHenry Sudhof <kellanved@phpbb.com>2007-10-18 18:25:06 +0000
commit8963b032de7c14151d9432ca208038c4f515d961 (patch)
tree3aabb249b6dd7b73b932a7783d3bc5abe62ef5cd /phpBB/includes
parent6e530cb85128e5121606493dcad0962d7c5c1499 (diff)
downloadforums-8963b032de7c14151d9432ca208038c4f515d961.tar
forums-8963b032de7c14151d9432ca208038c4f515d961.tar.gz
forums-8963b032de7c14151d9432ca208038c4f515d961.tar.bz2
forums-8963b032de7c14151d9432ca208038c4f515d961.tar.xz
forums-8963b032de7c14151d9432ca208038c4f515d961.zip
#14834 - at least probably
git-svn-id: file:///svn/phpbb/trunk@8203 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_user.php6
1 files changed, 3 insertions, 3 deletions
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)
{