From: Tobias Diekershoff Date: Tue, 29 Sep 2020 06:06:05 +0000 (+0200) Subject: Hotfix releases were not detected in the admin panel X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c317acc53b0e07140ecf9189afd50d4dc6706f98;p=friendica.git Hotfix releases were not detected in the admin panel --- diff --git a/src/Module/Admin/Federation.php b/src/Module/Admin/Federation.php index 1fdd7a512d..f5d7cb07bc 100644 --- a/src/Module/Admin/Federation.php +++ b/src/Module/Admin/Federation.php @@ -161,8 +161,9 @@ class Federation extends BaseAdmin $newVC = $vv['total']; $newVV = $vv['version']; $lastDot = strrpos($newVV, '.'); + $firstDash = strpos($newVV, '-'); $len = strlen($newVV) - 1; - if (($lastDot == $len - 4) && (!strrpos($newVV, '-rc') == $len - 3)) { + if (($lastDot == $len - 4) && (!strrpos($newVV, '-rc') == $len - 3) && (!$firstDash == $len - 1)) { $newVV = substr($newVV, 0, $lastDot); } if (isset($newV[$newVV])) {