Make WordPress Core

Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#1827 closed defect (bug) (fixed)

foreach error on edit.php line 102

Reported by: markjaquith's profile markjaquith Owned by: markjaquith's profile markjaquith
Milestone: Priority: normal
Severity: normal Version: 1.6
Component: Administration Keywords: bg|squashed bg|commit bg|has-patch
Focuses: Cc:

Description

Like the title says... running foreach on something that doesn't aways return an array.

Attachments (1)

edit.php.diff (931 bytes) - added by markjaquith 19 years ago.
Patch for WP 1.6 SVN

Download all attachments as: .zip

Change History (4)

@markjaquith
19 years ago

Patch for WP 1.6 SVN

#1 @markjaquith
19 years ago

  • Keywords bg|squashed bg|commit bg|has-patch added
  • Owner changed from anonymous to markjaquith
  • Status changed from new to assigned

That patch should do the trick. Makes sure that we have a result before going through the foreach loop.

#2 @ryan
19 years ago

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

(In [3032]) Don't loop over empty list. Props Mark Jaquith. fixes #1827

#3 @(none)
18 years ago

  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.