[buddypress-trac] [BuddyPress] #5083: Activity Meta doesn't recognize 0 as a valid value

buddypress-trac noreply at wordpress.org
Fri Jun 28 17:57:29 UTC 2013


#5083: Activity Meta doesn't recognize 0 as a valid value
---------------------------+----------------------------
 Reporter:  saurabhshukla  |       Owner:  saurabhshukla
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:
Component:  Core           |     Version:
 Severity:  normal         |  Resolution:  invalid
 Keywords:  dev-feedback   |
---------------------------+----------------------------
Changes (by r-a-y):

 * status:  assigned => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Don't use an empty check.

 Use a strict comparison check.

 Like:

 {{{
 // check if meta is integer 0
 if ( $meta === 0 ) {
 }}}

 See if that works for you.

 I'm closing this because this doesn't sound like a bug with BP.  But do
 feel to continue posting to see if what I stated works for you or not.

 If it does end up being a BP problem, I'll reopen.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5083#comment:2>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list