svncommit
2007-02-26 e17702395e1aa0fa54eea36817e1150c231d49eb
program/include/rcube_shared.inc
@@ -1012,12 +1012,14 @@
    
    foreach ($this->options as $option)
      {
      $selected = ((!empty($option['value']) && in_array($option['value'], $select, TRUE)) ||
                   (in_array($option['text'], $select, TRUE))) ? $this->_conv_case(' selected', 'attrib') : '';
      $selected = ((isset($option['value']) &&
                    in_array($option['value'], $select, TRUE)) ||
                   (in_array($option['text'], $select, TRUE))) ?
        $this->_conv_case(' selected', 'attrib') : '';
                  
      $options_str .= sprintf("<%s%s%s>%s</%s>\n",
                             $this->_conv_case('option', 'tag'),
                             !empty($option['value']) ? sprintf($value_str, $option['value']) : '',
                             isset($option['value']) ? sprintf($value_str, $option['value']) : '',
                             $selected, 
                             Q($option['text'], 'strict', FALSE),
                             $this->_conv_case('option', 'tag'));