diff options
author | michag86 <micha_g@arcor.de> | 2014-10-08 14:05:06 +0200 |
---|---|---|
committer | michag86 <micha_g@arcor.de> | 2014-10-08 14:05:06 +0200 |
commit | 8abe441d4ad345a94cd8170e8c691871ce648380 (patch) | |
tree | c49ecec6cf3c3103f7e5b335fe250548d872c472 /lib/private/group | |
parent | 063ca4f39be0a06dd0e60239d9c3305bf0f7c15a (diff) | |
download | nextcloud-server-8abe441d4ad345a94cd8170e8c691871ce648380.tar.gz nextcloud-server-8abe441d4ad345a94cd8170e8c691871ce648380.zip |
cleanup group admin(s) on deleteGroup
Diffstat (limited to 'lib/private/group')
-rw-r--r-- | lib/private/group/database.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/group/database.php b/lib/private/group/database.php index e6a5565b20e..fb2dceee7a7 100644 --- a/lib/private/group/database.php +++ b/lib/private/group/database.php @@ -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; } |