1
0
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:
Matt Friedman 2017-04-03 11:34:40 -07:00
parent 74054317d2
commit 450402ea42

View File

@ -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));