mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-05 00:13:29 +02:00
[ticket/15142] Remove duplicate code
PHPBB3-15142
This commit is contained in:
parent
74054317d2
commit
450402ea42
@ -274,7 +274,6 @@ class version_helper
|
||||
$branches = array_filter(array_keys($versions), function($branch) use ($self, $current_branch) {
|
||||
return $self->compare($branch, $current_branch, '>=');
|
||||
});
|
||||
$versions = !empty($branches) ? array_intersect_key($versions, array_flip($branches)) : $versions;
|
||||
if (!empty($branches))
|
||||
{
|
||||
$versions = array_intersect_key($versions, array_flip($branches));
|
||||
|
Loading…
x
Reference in New Issue
Block a user