Closed (fixed)
Project:
Ubercart
Version:
7.x-3.x-dev
Component:
Orders
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Dec 2012 at 02:08 UTC
Updated:
21 Dec 2012 at 23:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
DanZ commentedFix attached. I guess my version of PHP insists on an lvalue in a reset().
Comment #3
DanZ commentedHmm. I guess the automated tests really want a default value. Let's try this.
Comment #4
longwaveTest failures in #1 are unrelated, looks like testbot ran out of disk space. But the default value ensures that the first radio button is preselected, which is a better user experience.
Comment #5
DanZ commentedFYI, searching by first name, last name, or e-mail address does not trigger this crash for me. I'm running PHP 5.3.18.
Comment #6
longwaveWe don't need the reset(), just key() will do. Committed, thanks for spotting this.
Comment #7
DanZ commentedThe reset is a safety mechanism in case future code does something with the $options array before that line. It guarantees that key() will point to the first element of the array.
It's not required for current code, though, yes.