]> git.mxchange.org Git - friendica.git/commitdiff
add unkown to empty version strings
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sun, 13 Nov 2016 07:12:09 +0000 (08:12 +0100)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Sun, 13 Nov 2016 07:12:09 +0000 (08:12 +0100)
mod/admin.php

index 2a70419852fa86361bd86a9641ce01af7846a6a7..4dbdc377f41543098f8a5bbcf2b90c7dc9934dd7 100644 (file)
@@ -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