From 450402ea429e654aab01ae934772ddf90d2e6a38 Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Mon, 3 Apr 2017 11:34:40 -0700 Subject: [PATCH] [ticket/15142] Remove duplicate code PHPBB3-15142 --- phpBB/phpbb/version_helper.php | 1 - 1 file changed, 1 deletion(-) diff --git a/phpBB/phpbb/version_helper.php b/phpBB/phpbb/version_helper.php index 614c93d781..34e471493e 100644 --- a/phpBB/phpbb/version_helper.php +++ b/phpBB/phpbb/version_helper.php @@ -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));