| Index
» Projects
» phpMyEdit
» Bug list
» Bug #490 |
 |
|
Viewing Bug Advanced Details |
[ Jump to Bugnotes ]
[ Bug History ]
[ Print ]
|
|
ID |
Category |
Severity |
Reproducibility |
Date Submitted |
Last Update |
|
0000490 |
core / general |
major |
always |
2007-12-12 00:28 |
2007-12-12 00:28 |
|
|
|
Reporter |
dre_dawg |
View Status |
public |
|
|
Assigned To |
|
|
Priority |
normal |
Resolution |
open |
Platform |
linux |
|
Status |
new |
Duplicate ID |
|
OS |
rhel |
|
Projection |
none |
|
Version |
4 |
|
ETA |
none |
|
Product Version |
5.7.1 (stable) |
|
|
Product Build |
|
|
|
Votes |
1 |
|
|
|
Summary |
htmlSelect has typo and produces php warning |
|
Description |
foreach($selected as $val) $selected[]=(string)$val;
should be:
foreach($selected as $val) $selected2[]=(string)$val;
Also, add a check to avoid PHP warnings:
if ( is_array($selected) ) {
if ((! $found || $multiple) && in_array((string)$key, $selected, 1)
|| (count($selected) == 0 && ! $found && ! $multiple)) {
$ret .= ' selected="selected"';
$found = true;
}
} |
|
Steps To Reproduce |
|
|
Additional Information / Solution |
|
|
Attached Files |
|
|
|
|
There are no notes attached to this bug. |
|
Bug History |
|
Date Modified |
Username |
Field |
Change |
|
2007-12-12 00:28 |
dre_dawg |
New Bug |
|
|
|