[buddypress-trac] [BuddyPress] #5158: strstr() [function.strstr]: Empty delimiter in bp_is_current_component () when $component is empty

buddypress-trac noreply at wordpress.org
Mon Sep 2 01:50:22 UTC 2013


#5158: strstr() [function.strstr]: Empty delimiter  in bp_is_current_component ()
when $component is empty
--------------------------+---------------------------
 Reporter:  megainfo      |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  1.9
Component:  Core          |     Version:  1.8.1
 Severity:  minor         |  Resolution:  fixed
 Keywords:  has-patch     |
--------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"7361"]:
 {{{
 #!CommitTicketReference repository="" revision="7361"
 Ensure $component has been passed before checking is_current_component()

 Passing an empty value was causing a PHP warning to be thrown when using
 strstr() later in the function.

 Fixes #5158

 Props megainfo
 }}}

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


More information about the buddypress-trac mailing list