mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus: [ticket/12457] Default to first category if none is selected in gallery avatar
This commit is contained in:
commit
0326c96e50
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ class local extends \phpbb\avatar\driver\driver
|
|||
public function prepare_form($request, $template, $user, $row, &$error)
|
||||
{
|
||||
$avatar_list = $this->get_avatar_list($user);
|
||||
$category = $request->variable('avatar_local_cat', '');
|
||||
$category = $request->variable('avatar_local_cat', key($avatar_list));
|
||||
|
||||
foreach ($avatar_list as $cat => $null)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue