[buddypress-trac] [BuddyPress] #3139: groups_update_groupmeta() should accept 0 as meta value

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Thu Apr 7 16:41:34 UTC 2011


#3139: groups_update_groupmeta() should accept 0 as meta value
-----------------------+-----------------------------
 Reporter:  calvin_42  |      Owner:
     Type:  defect     |     Status:  new
 Priority:  normal     |  Milestone:  Awaiting Review
Component:  Groups     |    Version:
 Keywords:             |
-----------------------+-----------------------------
 Hi there!

 groups_update_groupmeta() and bp_blogs_update_blogmeta() contain the
 following lines :

 {{{
 if (empty($meta_value)) {
   return groups_delete_groupmeta( $group_id, $meta_key )
 }
 }}}

 So if I want to record the meta value 0 I have to do an INSERT value using
 directly $wpdb. I don't understand the limitation.

 FYI WP update_metadata() doesn't have anymore this kind of limitation
 (deprecated update_usermeta() had).

-- 
Ticket URL: <https://trac.buddypress.org/ticket/3139>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list