Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/22/2010 11:09:28 AM (16 years ago)
Author:
johnjamesjacoby
Message:

Fixes #2523 props cnorris23

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-groups/bp-groups-classes.php

    r3143 r3145  
    749749                groups_update_groupmeta( $this->group_id, 'total_member_count', ( (int) groups_get_groupmeta( $this->group_id, 'total_member_count' ) - 1 ) );
    750750
    751                 $group_count = get_usermeta( $this->user_id, 'total_group_count' );
     751                $group_count = get_user_meta( $this->user_id, 'total_group_count', true );
    752752                if ( !empty( $group_count ) )
    753                         update_usermeta( $this->user_id, 'total_group_count', (int)$group_count - 1 );
     753                        update_user_meta( $this->user_id, 'total_group_count', (int)$group_count - 1 );
    754754
    755755                return $this->save();
     
    763763
    764764                groups_update_groupmeta( $this->group_id, 'total_member_count', ( (int) groups_get_groupmeta( $this->group_id, 'total_member_count' ) + 1 ) );
    765                 update_usermeta( $this->user_id, 'total_group_count', (int)get_usermeta( $this->user_id, 'total_group_count' ) + 1 );
     765                update_user_meta( $this->user_id, 'total_group_count', (int)get_user_meta( $this->user_id, 'total_group_count', true ) + 1 );
    766766
    767767                return $this->save();
Note: See TracChangeset for help on using the changeset viewer.