diff options
author | friendica <info@friendica.com> | 2014-01-15 03:12:47 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-01-15 03:12:47 -0800 |
commit | 47b8071ca7968ea489bd00c0746a2be39d6a6f2d (patch) | |
tree | 9c817b18bffb1d4cdedf081a419901fbb1715810 /mod/pubsites.php | |
parent | 362e4060e19e910a50886b660532dd35fd0385bb (diff) | |
download | volse-hubzilla-47b8071ca7968ea489bd00c0746a2be39d6a6f2d.tar.gz volse-hubzilla-47b8071ca7968ea489bd00c0746a2be39d6a6f2d.tar.bz2 volse-hubzilla-47b8071ca7968ea489bd00c0746a2be39d6a6f2d.zip |
dav: throw exception if channel for requested DAV directory is deleted
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>'; |