]> git.mxchange.org Git - friendica.git/commitdiff
We don't need to show the id.
authorMichael <heluecht@pirati.ca>
Sun, 12 Mar 2017 09:41:10 +0000 (09:41 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 12 Mar 2017 09:41:10 +0000 (09:41 +0000)
include/socgraph.php

index f7bb061e7b7f1e3f462cce10c5417237f91f6bed..2d27c863b2113c72840dc22bc36ca7f8456dfeae 100644 (file)
@@ -2113,7 +2113,7 @@ function gs_discover() {
  * @return array List of server urls
  */
 function poco_serverlist() {
-       $r = q("SELECT `id`, `url`, `site_name` AS `displayName`, `network`, `platform`, `version` FROM `gserver`
+       $r = q("SELECT `url`, `site_name` AS `displayName`, `network`, `platform`, `version` FROM `gserver`
                WHERE `network` IN ('%s', '%s', '%s') AND `last_contact` > `last_failure`
                ORDER BY `last_contact`
                LIMIT 1000",
@@ -2121,11 +2121,6 @@ function poco_serverlist() {
        if (!dbm::is_result($r)) {
                return false;
        }
-       $list = array();
-       foreach ($r AS $server) {
-               $server['id'] = (int)$server['id'];
-               $list[] = $server;
-       }
-       return $list;
+       return $r;
 }
 ?>