mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Merge pull request #2539 from marc1706/ticket/12457
[ticket/12457] Default to first category if none is selected in gallery avatar * marc1706/ticket/12457: [ticket/12457] Default to first category if none is selected in gallery avatar
This commit is contained in:
commit
d79ad22a21
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