[buddypress-trac] [BuddyPress Trac] #6977: Audit all DB fetch methods to return integers where appropriate

buddypress-trac noreply at wordpress.org
Mon Aug 22 22:00:25 UTC 2016


#6977: Audit all DB fetch methods to return integers where appropriate
---------------------------+------------------
 Reporter:  r-a-y          |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  2.7
Component:  Core           |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  needs-refresh  |
---------------------------+------------------

Comment (by r-a-y):

 In [changeset:"11026"]:
 {{{
 #!CommitTicketReference repository="" revision="11026"
 In `BP_Core_User::get_last_activity()`, check if array key is set before
 integer casting.

 Prevent PHP notices, which broke unit tests as of r11024.  Boo Ray!

 See #6977.
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6977#comment:22>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list