diff options
author | Thomas Willingham <founder@kakste.com> | 2014-01-15 23:01:02 +0000 |
---|---|---|
committer | Thomas Willingham <founder@kakste.com> | 2014-01-15 23:01:02 +0000 |
commit | 9f66e5aef325666a0fa6e3f035eaa2c3b35b5b00 (patch) | |
tree | c4b261f1cbbf85d4153ecee64fe285cc5aa38ec9 /mod/pubsites.php | |
parent | 9addc83520adada78ad339edd6abe666f65b7059 (diff) | |
parent | 762a5432494711bf481943a0dee72cf65f7a04bb (diff) | |
download | volse-hubzilla-9f66e5aef325666a0fa6e3f035eaa2c3b35b5b00.tar.gz volse-hubzilla-9f66e5aef325666a0fa6e3f035eaa2c3b35b5b00.tar.bz2 volse-hubzilla-9f66e5aef325666a0fa6e3f035eaa2c3b35b5b00.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'mod/pubsites.php')
-rw-r--r-- | mod/pubsites.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/pubsites.php b/mod/pubsites.php index c15ba31ac..c08ca2ae5 100644 --- a/mod/pubsites.php +++ b/mod/pubsites.php @@ -29,8 +29,10 @@ function pubsites_content(&$a) { $j = json_decode($ret['body'],true); if($j) { $o .= '<table border="1"><tr><td>' . t('Site URL') . '</td><td>' . t('Access Type') . '</td><td>' . t('Registration Policy') . '</td><td>' . t('Location') . '</td></tr>'; - foreach($j['sites'] as $jj) { - $o .= '<tr><td>' . '<a href="'. (($jj['sellpage']) ? $jj['sellpage'] : $jj['url'] . '/register' ) . '" >' . $jj['url'] . '</a>' . '</td><td>' . $jj['access'] . '</td><td>' . $jj['register'] . '</td><td>' . $jj['location'] . '</td></tr>'; + if($j['sites']) { + foreach($j['sites'] as $jj) { + $o .= '<tr><td>' . '<a href="'. (($jj['sellpage']) ? $jj['sellpage'] : $jj['url'] . '/register' ) . '" >' . $jj['url'] . '</a>' . '</td><td>' . $jj['access'] . '</td><td>' . $jj['register'] . '</td><td>' . $jj['location'] . '</td></tr>'; + } } $o .= '</table>'; |