| phpMyEdit - Viewing Bug Advanced Details | [ Go Back ] | ||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 492 | core / general | major | always | 2007-12-12 00:29 | 2007-12-12 00:29 |
|
|
|||||
| Reporter: | dre_dawg | Platform: | linux | ||
| Assigned To: | OS: | rhel | |||
| Priority: | normal | Version: | 4 | ||
| Status: | new | Product Version: | 5.7.1 (stable) | ||
| Product Build: | Resolution: | open | |||
| Projection: | none | Duplicate ID: | |||
| ETA: | none | ||||
|
|
|||||
| 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. |