// Allow none?
if ($allowNone === TRUE) {
// Then add it
- $OUT .= '<option value="0">{--SELECT_NONE--}</option>';
+ $OUT .= '<option value="">{--SELECT_NONE--}</option>';
} // END - if
// Walk through all options
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'name=' . $name . ',default[' . gettype($default) . ']=' . $default . ',optionKey[' . gettype($optionKey) . ']=' . $optionKey);
// Is default value same as given value?
- if ((!is_null($default)) && (isset($option[$optionKey])) && ($default == $option[$optionKey])) {
+ if ((!is_null($default)) && (isset($option[$optionKey])) && ($default === $option[$optionKey])) {
// Then set default
$option['default'] = ' selected="selected"';
} // END - if