Skip to:
Content

bbPress.org

Opened 13 years ago

Closed 12 years ago

#1646 closed defect (bug) (fixed)

Bozo User plugin bug

Reported by: 7i7griffin's profile 7i7GRiFFiN Owned by:
Milestone: 1.2 Priority: normal
Severity: normal Version: 1.1-alpha
Component: Back-end Keywords:
Cc: johnjacobyjames

Description

I've see a bug in Bozo User plugin that when you go to Users ta in admin and filter jus' bozos and if there will be no bozo, the function on line 353 of plugin will crash and show this messege on top of screen:
Warning: array_intersect() [function.array-intersect]: Argument #1 is not an array in /Applications/XAMPP/xamppfiles/htdocs/bbP/bb-plugins/bozo.php on line 353
I hope this bug jus' be for me...
XAMPP with PHP vr5.3.1 and bbPress vr1.1

Attachments (2)

Screen shot 2011-09-25 at 11.35.44.png (18.9 KB) - added by 7i7GRiFFiN 13 years ago.
bozo.diff (1.6 KB) - added by GautamGupta 13 years ago.

Download all attachments as: .zip

Change History (9)

@GautamGupta
13 years ago

#1 @GautamGupta
13 years ago

  • Component changed from Administration to Back-end
  • Keywords needs-patch reporter-feedback needs-testing removed
  • Milestone changed from Awaiting Review to 1.2

#2 @GautamGupta
13 years ago

  • Type changed from task to defect

#3 @7i7GRiFFiN
13 years ago

What had been changed in that diff?

#4 @GautamGupta
13 years ago

Line 353 typecasts the variable as an array, the rest just remove the trailing spaces from the lines.

#5 @7i7GRiFFiN
13 years ago

  • Resolution set to worksforme
  • Status changed from new to closed

Thank you! that bug is fixed now, but now I need a translate function on line 301

return sprintf( __('%1$s%2$s that are bozos'), $h2_search, $h2_role );
Last edited 13 years ago by 7i7GRiFFiN (previous) (diff)

#6 @johnjamesjacoby
12 years ago

  • Milestone changed from 1.2 to 1.1.1
  • Resolution worksforme deleted
  • Status changed from closed to reopened

Moving to 1.1.1 milestone and reopening since this hasn't actually been fixed yet.

#7 @johnjamesjacoby
12 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [3997]) Bozo Plugin (1.1 branch):

  • Cast return value as array to suppress debug notice.
  • Fixes #1646.
  • Props GautamGupta.
Note: See TracTickets for help on using tickets.