git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12855
7612ce4b-ef26-0410-bec9-
ea0150e637f0
//
if ($multiple) {
foreach ($default as $def) {
- if ($def === $key) {
+ if ((string)$def == (string)$key) {
echo ' selected="selected"';
break;
}
// (we could use the same code above, but we do this here to increase
// efficency and performance)
//
- else if ($default[0] === $key)
+ else if ((string)$default[0] == (string)$key)
echo ' selected="selected"';
echo '>' . $label_open . $value . $label_close . "</option>\n";