aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mod/pubsites.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/pubsites.php b/mod/pubsites.php
index 3e8833a9d..694541b7a 100644
--- a/mod/pubsites.php
+++ b/mod/pubsites.php
@@ -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>';
}