mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/15142] Remove duplicate code
PHPBB3-15142
This commit is contained in:
parent
74054317d2
commit
450402ea42
1 changed files with 0 additions and 1 deletions
|
@ -274,7 +274,6 @@ class version_helper
|
||||||
$branches = array_filter(array_keys($versions), function($branch) use ($self, $current_branch) {
|
$branches = array_filter(array_keys($versions), function($branch) use ($self, $current_branch) {
|
||||||
return $self->compare($branch, $current_branch, '>=');
|
return $self->compare($branch, $current_branch, '>=');
|
||||||
});
|
});
|
||||||
$versions = !empty($branches) ? array_intersect_key($versions, array_flip($branches)) : $versions;
|
|
||||||
if (!empty($branches))
|
if (!empty($branches))
|
||||||
{
|
{
|
||||||
$versions = array_intersect_key($versions, array_flip($branches));
|
$versions = array_intersect_key($versions, array_flip($branches));
|
||||||
|
|
Loading…
Add table
Reference in a new issue