]> git.mxchange.org Git - friendica.git/commitdiff
count only version numbers starting with "numbers / dot or dash / numbers" in federat...
authorJens Tautenhahn <shogun@tausys.de>
Wed, 9 Nov 2016 20:48:36 +0000 (21:48 +0100)
committerJens Tautenhahn <shogun@tausys.de>
Wed, 9 Nov 2016 20:48:36 +0000 (21:48 +0100)
mod/admin.php

index 287eff27258c41ef278811c8cc486e5a7da74b84..0e9032cf3c12dec373e1cebb30651bfdebd64a68 100644 (file)
@@ -290,7 +290,7 @@ function admin_page_federation(&$a) {
                // what versions for that platform do we know at all?
                // again only the active nodes
                $v = qu('SELECT COUNT(*) AS `total`, `version` FROM `gserver`
-                               WHERE `last_contact` > `last_failure` AND `platform` LIKE "%s"  AND `version` != ""
+                               WHERE `last_contact` > `last_failure` AND `platform` LIKE "%s"  AND `version` RLIKE "^[[:digit:]]+[-.][[:digit:]]+"
                                GROUP BY `version`
                                ORDER BY `version`;', $p);