]> git.mxchange.org Git - friendica.git/blobdiff - mod/admin.php
beautification of pleroma stats
[friendica.git] / mod / admin.php
index 7f8e12e0c7edbfe20b57df2e857f29edfd1d3941..5fc53427c4480d68103f07318503da9429cc4db1 100644 (file)
@@ -680,6 +680,8 @@ function admin_page_federation(App $a)
                                do {
                                        $part = array_pop($parts);
                                } while (!empty($parts) && ((strlen($part) >= 40) || (strlen($part) <= 3)));
+                               // only take the x.x.x part of the version, not the "release" after the dash
+                               $part = array_shift(explode('-', $part));
 
                                if (!empty($part)) {
                                        if (empty($compacted[$part])) {