phpMyEdit - Viewing Bug Advanced Details [ Go Back ]
491 core / general major always 2007-12-12 00:28 2007-12-12 00:28
dre_dawg linux  
rhel  
normal 4  
new 5.7.1 (stable)  
open  
none  
none  
htmlSelect has typo and produces php warning
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;
}
}

There are no notes attached to this bug.