aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-15 16:36:49 -0700
committerFriendika <info@friendika.com>2011-05-15 16:36:49 -0700
commit730322ee5fd1b04a026ce6d0bafae9079f307a4b (patch)
tree45dfb0056abb56fe3fafd3184cdd358761e78166 /mod
parent45b9bd96baa12c426b1a0a629e81908a59f149d9 (diff)
downloadvolse-hubzilla-730322ee5fd1b04a026ce6d0bafae9079f307a4b.tar.gz
volse-hubzilla-730322ee5fd1b04a026ce6d0bafae9079f307a4b.tar.bz2
volse-hubzilla-730322ee5fd1b04a026ce6d0bafae9079f307a4b.zip
bug #70 - error messages on group deletion, warning cleanup
Diffstat (limited to 'mod')
-rw-r--r--mod/group.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/group.php b/mod/group.php
index 4873fc3a3..3da633edf 100644
--- a/mod/group.php
+++ b/mod/group.php
@@ -92,7 +92,7 @@ function group_content(&$a) {
notice( t('Unable to remove group.') . EOL);
}
goaway($a->get_baseurl() . '/group');
- return; // NOTREACHED
+ // NOTREACHED
}
if(($a->argc > 2) && intval($a->argv[1]) && intval($a->argv[2])) {
@@ -107,7 +107,7 @@ function group_content(&$a) {
if(($a->argc > 1) && (intval($a->argv[1]))) {
require_once('include/acl_selectors.php');
- $r = q("SELECT * FROM `group` WHERE `id` = %d AND `uid` = %d LIMIT 1",
+ $r = q("SELECT * FROM `group` WHERE `id` = %d AND `uid` = %d AND `deleted` = 0 LIMIT 1",
intval($a->argv[1]),
intval(local_user())
);
@@ -161,6 +161,9 @@ function group_content(&$a) {
}
+ if(! isset($group))
+ return;
+
$o .= '<div id="group-update-wrapper">';
if($change)
$o = '';