Ticket #1827 (closed defect (bug): fixed)

Opened 3 years ago

Last modified 2 years ago

foreach error on edit.php line 102

Reported by: markjaquith Assigned to: markjaquith
Priority: normal Milestone:
Component: Administration Version: 1.6
Severity: normal Keywords: bg|squashed bg|commit bg|has-patch
Cc:

Description

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

Attachments

edit.php.diff (0.9 kB) - added by markjaquith on 11/05/05 06:59:53.
Patch for WP 1.6 SVN

Change History

11/05/05 06:59:53 changed by markjaquith

  • attachment edit.php.diff added.

Patch for WP 1.6 SVN

11/05/05 07:01:07 changed by markjaquith

  • keywords set to bg|squashed bg|commit bg|has-patch.
  • 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.

11/10/05 23:36:51 changed by ryan

  • status changed from assigned to closed.
  • resolution set to fixed.

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

11/30/06 19:41:47 changed by

  • milestone deleted.

Milestone 2.0 deleted