mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/15142] Remove duplicate code
PHPBB3-15142
This commit is contained in:
@@ -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));
|
||||||
|
Reference in New Issue
Block a user