]> git.mxchange.org Git - friendica.git/commitdiff
some platforms don't provide version information
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sun, 13 Nov 2016 06:03:38 +0000 (07:03 +0100)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Sun, 13 Nov 2016 06:03:38 +0000 (07:03 +0100)
mod/admin.php

index b9c714f3773d531d1f4aca9ffa410395d842d11b..2a70419852fa86361bd86a9641ce01af7846a6a7 100644 (file)
@@ -285,14 +285,14 @@ function admin_page_federation(&$a) {
                // get a total count for the platform, the name and version of the
                // highest version and the protocol tpe
                $c = qu('SELECT COUNT(*) AS `total`, `platform`, `network`, `version` FROM `gserver`
-                               WHERE `platform` LIKE "%s" AND `last_contact` > `last_failure` AND `version` != ""
+                               WHERE `platform` LIKE "%s" AND `last_contact` > `last_failure`
                                ORDER BY `version` ASC;', $p);
                $total = $total + $c[0]['total'];
 
                // 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"
                                GROUP BY `version`
                                ORDER BY `version`;', $p);