cleanup group admin(s) on deleteGroup

This commit is contained in:
michag86 2014-10-08 14:05:06 +02:00
parent 063ca4f39b
commit 8abe441d4a
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}