From: Tobias Diekershoff Date: Wed, 9 Dec 2015 19:48:43 +0000 (+0100) Subject: allow -rc in friendica version listings X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0905f18c0f2cbace91dd95a839e573ac89c1ad3c;p=friendica.git allow -rc in friendica version listings --- diff --git a/mod/admin.php b/mod/admin.php index 39677fb386..772d186ed5 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -278,7 +278,7 @@ function admin_page_federation(&$a) { $newVV = $vv['version']; $lastDot = strrpos($newVV,'.'); $len = strlen($newVV)-1; - if ($lastDot == $len-4) + if (($lastDot == $len-4) && (!strrpos($newVV,'-rc')==$len-3)) $newVV = substr($newVV, 0, $lastDot); if (isset($newV[$newVV])) {