Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
c0d63680
Commit
c0d63680
authored
Nov 13, 2014
by
Morris Jobke
Browse files
Merge pull request #11479 from owncloud/cleanup-group-admin-on-deleteGroup
cleanup group admin(s) on deleteGroup
parents
dfcf2059
8abe441d
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/private/group/database.php
View file @
c0d63680
...
...
@@ -84,6 +84,10 @@ class OC_Group_Database extends OC_Group_Backend {
$stmt
=
OC_DB
::
prepare
(
"DELETE FROM `*PREFIX*group_user` WHERE `gid` = ?"
);
$stmt
->
execute
(
array
(
$gid
));
// Delete the group-groupadmin relation
$stmt
=
OC_DB
::
prepare
(
"DELETE FROM `*PREFIX*group_admin` WHERE `gid` = ?"
);
$stmt
->
execute
(
array
(
$gid
));
return
true
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment