diff --git a/lib/User/database.php b/lib/User/database.php index 1a4ddf44c4..3abaf9e1f4 100644 --- a/lib/User/database.php +++ b/lib/User/database.php @@ -75,7 +75,7 @@ class OC_USER_DATABASE extends OC_USER_BACKEND { */ public static function deleteUser( $uid ){ // Delete user-group-relation - $query = OC_DB::prepare( "DELETE FROM `*PREFIX*group_user` WHERE uid = ?" ); + $query = OC_DB::prepare( "DELETE FROM `*PREFIX*users` WHERE uid = ?" ); $result = $query->execute( array( $uid )); return true; }