Hotfix releases were not detected in the admin panel
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 29 Sep 2020 06:06:05 +0000 (08:06 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 29 Sep 2020 06:06:05 +0000 (08:06 +0200)
src/Module/Admin/Federation.php

index 1fdd7a5..f5d7cb0 100644 (file)
@@ -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])) {