[buddypress-trac] [BuddyPress Trac] #7203: BP_Core_Nav->delete_nav() generates "Array to string conversion" PHP Notice

buddypress-trac noreply at wordpress.org
Tue Sep 20 17:26:31 UTC 2016


#7203: BP_Core_Nav->delete_nav() generates "Array to string conversion" PHP Notice
--------------------------+--------------------
 Reporter:  needle        |       Owner:  imath
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  2.7
Component:  Navigation    |     Version:  2.6.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+--------------------
Changes (by r-a-y):

 * keywords:   => has-patch


Comment:

 If the install is PHP 5.2.9+, we could use the second parameter to
 `array_unique()`:
 http://php.net/manual/en/function.array-unique.php

 Maybe we can make this change for BP 2.8 when we will support PHP 5.3+.

 Or, we can do what @needle recommended and that is to remove the
 `array_unique()` call for now.

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


More information about the buddypress-trac mailing list