summaryrefslogtreecommitdiffstats
path: root/lib/private/group
diff options
context:
space:
mode:
authormichag86 <micha_g@arcor.de>2014-10-08 14:05:06 +0200
committermichag86 <micha_g@arcor.de>2014-10-08 14:05:06 +0200
commit8abe441d4ad345a94cd8170e8c691871ce648380 (patch)
treec49ecec6cf3c3103f7e5b335fe250548d872c472 /lib/private/group
parent063ca4f39be0a06dd0e60239d9c3305bf0f7c15a (diff)
downloadnextcloud-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.php4
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;
}