]> source.dussan.org Git - nextcloud-server.git/commitdiff
cleanup group admin(s) on deleteGroup
authormichag86 <micha_g@arcor.de>
Wed, 8 Oct 2014 12:05:06 +0000 (14:05 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Thu, 13 Nov 2014 21:40:12 +0000 (22:40 +0100)
lib/private/group/database.php

index 8aebefabd275f34a08ddb1a3fb318c6fb3f3c51c..6bad55c8d5ec02753286998db0c6fd7678e2ed50 100644 (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;
        }