more fixes to public site list while waiting for a public site or two to show up

This commit is contained in:
friendica 2013-09-05 22:26:19 -07:00
parent 2c53017fb5
commit ae624e9bce

View File

@ -26,7 +26,7 @@ function pubsites_content(&$a) {
$j = json_decode($ret['body'],true);
if($j) {
$o .= '<table><tr><td>' . t('Site URL') . '</td><td>' . t('Access Type') . '</td><td>' . t('Registration Policy') . '</td></tr>';
foreach($j as $jj) {
foreach($j['sites'] as $jj) {
$o .= '<tr><td>' . $jj['url'] . '</td><td>' . $jj['access'] . '</td><td>' . $jj['register'] . '</td></tr>';
}