[ticket/13713] Fix base classes for sources

PHPBB3-13713
This commit is contained in:
lavigor 2018-08-02 22:09:09 +03:00 committed by Marc Alexander
parent 07130bf077
commit c6789ad294
No known key found for this signature in database
GPG key ID: 50E0D2423696F995
2 changed files with 1 additions and 3 deletions

View file

@ -149,7 +149,7 @@ abstract class base_group implements source_interface
'type' => 'group',
'img' => phpbb_get_group_avatar($groups[$group_id]),
],
'rank' => $group_rank['title'],
'rank' => (isset($group_rank['title'])) ? $group_rank['title'] : '',
'priority' => $this->get_priority($groups[$group_id]),
]);
}

View file

@ -120,7 +120,5 @@ abstract class base_user implements source_interface
'priority' => $this->get_priority($user),
]);
}
$this->db->sql_freeresult($result);
}
}