X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FAdmin%2FFederation.php;h=f5d7cb07bc63be56b2d0fa474ebac085151bba49;hb=1792046a4f270f15d904d591c1e9eb0444ff2349;hp=1fdd7a512d09daf8458556eab374ea1a3e912b46;hpb=aa0b485f3dca72c5448076e913fa54d948cd7731;p=friendica.git 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])) {