[Bb-trac] [bbPress] #843: typo bug in function bb_cache_users

bbPress bb-trac at lists.bbpress.org
Sun Mar 30 03:48:18 GMT 2008


#843: typo bug in function bb_cache_users
----------------------+-----------------------------------------------------
 Reporter:  _ck_      |       Owner:       
     Type:  defect    |      Status:  new  
 Priority:  high      |   Milestone:  0.9  
Component:  Back-end  |     Version:  0.7.2
 Severity:  normal    |    Keywords:       
----------------------+-----------------------------------------------------
 There is a typo bug in '''function bb_cache_users''' found in '''bb-
 includes/functions.php'''
  which has existed since the first public bbPress release.

 {{{ unset($ids[i]); }}}

 should be

 {{{ unset($ids[$i]); }}}

 note the (lack of) '''$''' on the '''i'''

 This causes the cache to always miss on users since the search value never
 gets unset. [[BR]]

 (Typo may exist in other similar functions, have not checked yet.)

-- 
Ticket URL: <http://trac.bbpress.org/ticket/843>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list