]> git.mxchange.org Git - friendica.git/commitdiff
error return for update process when invalid group
authorFriendika <info@friendika.com>
Thu, 17 Feb 2011 07:10:18 +0000 (23:10 -0800)
committerFriendika <info@friendika.com>
Thu, 17 Feb 2011 07:10:18 +0000 (23:10 -0800)
mod/network.php

index 773c21be20c9f5e3bb62034bfcc6d16a21e52534..998f8f6ec1e7e8ee0d6b3e2b6af043a5ababc9d0 100644 (file)
@@ -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