Skip to:
Content

bbPress.org

Opened 15 years ago

Closed 14 years ago

#1646 closed defect (bug) (fixed)

Bozo User plugin bug

Reported by: 7i7GRiFFiN Owned by:
Priority: normal Milestone: 1.2
Component: Back-end Version: 1.1-alpha
Severity: normal 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 15 years ago.
bozo.diff (1.6 KB ) - added by GautamGupta 15 years ago.

Download all attachments as: .zip

Change History (9)

@GautamGupta
15 years ago

#1 @GautamGupta
15 years ago

  • Component AdministrationBack-end
  • Keywords needs-patch reporter-feedback needs-testing removed
  • Milestone Awaiting Review1.2

#2 @GautamGupta
15 years ago

  • Type taskdefect

#3 @7i7GRiFFiN
15 years ago

What had been changed in that diff?

#4 @GautamGupta
15 years ago

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

#5 @7i7GRiFFiN
15 years ago

  • Resolutionworksforme
  • Status newclosed

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

return sprintf( __('%1$s%2$s that are bozos'), $h2_search, $h2_role );
Version 0, edited 15 years ago by 7i7GRiFFiN (next)

#6 @johnjamesjacoby
14 years ago

  • Milestone 1.21.1.1
  • Resolution worksforme
  • Status closedreopened

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

#7 @johnjamesjacoby
14 years ago

  • Resolutionfixed
  • Status reopenedclosed

(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.