Browse Source

We don't need to show the id.

pull/3228/head
Michael 4 years ago
parent
commit
bfad58a777
1 changed files with 2 additions and 7 deletions
  1. +2
    -7
      include/socgraph.php

+ 2
- 7
include/socgraph.php View 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;
}
?>

Loading…
Cancel
Save