aboutsummaryrefslogtreecommitdiffstats
path: root/mod/network.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-02-16 23:10:18 -0800
committerFriendika <info@friendika.com>2011-02-16 23:10:18 -0800
commit0435236192b07ded8b537f802bc9fa261e64c461 (patch)
tree64bffeb0af6d2dd6682a14963a3281fdf4bfe457 /mod/network.php
parent9f8b6dff1ce7ddce93647d7155ecdfb102a2f4e0 (diff)
downloadvolse-hubzilla-0435236192b07ded8b537f802bc9fa261e64c461.tar.gz
volse-hubzilla-0435236192b07ded8b537f802bc9fa261e64c461.tar.bz2
volse-hubzilla-0435236192b07ded8b537f802bc9fa261e64c461.zip
error return for update process when invalid group
Diffstat (limited to 'mod/network.php')
-rw-r--r--mod/network.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/network.php b/mod/network.php
index 773c21be2..998f8f6ec 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -43,6 +43,8 @@ function network_content(&$a, $update = 0) {
if($update && (x($_SESSION,'netargs'))) {
$nouveau = $_SESSION['netargs']['nouveau'];
$group = $_SESSION['netargs']['group'];
+ if(strlen($group))
+ $group_acl = array('allow_gid' => '<' . $group . '>');
$a->pager['page'] = $_SESSION['netargs']['page'];
$a->set_pager_itemspage(50);
}
@@ -144,6 +146,8 @@ function network_content(&$a, $update = 0) {
intval($_SESSION['uid'])
);
if(! count($r)) {
+ if($update)
+ killme();
notice( t('No such group') . EOL );
goaway($a->get_baseurl() . '/network');
return; // NOTREACHED