]> git.mxchange.org Git - friendica.git/blobdiff - mod/admin.php
Removed commented code
[friendica.git] / mod / admin.php
index 2a70419852fa86361bd86a9641ce01af7846a6a7..9eb86720dfd04c779914498689a01778429c9640 100644 (file)
@@ -299,6 +299,13 @@ 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.
+               foreach ($v as $key => $value) {
+                       if ($v[$key]['version'] == '') {
+                               $v[$key] = array('total'=>$v[$key]['total'], 'version'=>t('unknown'));
+                       }
+               }
                // 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