From: Tobias Diekershoff Date: Sun, 13 Nov 2016 07:12:09 +0000 (+0100) Subject: add unkown to empty version strings X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=772d33342c093fceb366e5aeb38ad097bcb8aa40;p=friendica.git add unkown to empty version strings --- diff --git a/mod/admin.php b/mod/admin.php index 2a70419852..4dbdc377f4 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -299,6 +299,17 @@ function admin_page_federation(&$a) { // // clean up version numbers // + // some platforms do not provide version information, add a unkown there + // to the version string for the displayed list. + $newV = array(); + foreach ($v as $vv) { + if ($vv['version'] == '') { + $newV[] = array('total'=>$vv['total'], 'version'=>t('unknown')); + } else { + $newV[] = $vv; + } + } + $v = $newV; // in the DB the Diaspora versions have the format x.x.x.x-xx the last // part (-xx) should be removed to clean up the versions from the "head // commit" information and combined into a single entry for x.x.x.x