Changeset 497 in subversion


Ignore:
Timestamp:
Feb 26, 2007 1:51:39 AM (6 years ago)
Author:
estadtherr
Message:

fixed check for selected value in value array in rcube_shared::select

Location:
trunk/roundcubemail
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r491 r497  
    11CHANGELOG RoundCube Webmail 
    22--------------------------- 
     3 
     42007/02/25 (estadtherr) 
     5---------- 
     6- Fixed priority selector issue (#1484150) 
     7 
    38 
    492007/02/21 (thomasb) 
  • trunk/roundcubemail/program/include/rcube_shared.inc

    r493 r497  
    10101010    if (!is_array($select)) 
    10111011      $select = array((string)$select); 
    1012      
     1012 
    10131013    foreach ($this->options as $option) 
    10141014      { 
    1015       $selected = ((!empty($option['value']) && in_array($option['value'], $select, TRUE)) || 
    1016                    (in_array($option['text'], $select, TRUE))) ? $this->_conv_case(' selected', 'attrib') : ''; 
     1015      $selected = ((isset($option['value']) && 
     1016                    in_array($option['value'], $select, TRUE)) || 
     1017                   (in_array($option['text'], $select, TRUE))) ? 
     1018        $this->_conv_case(' selected', 'attrib') : ''; 
    10171019                   
    10181020      $options_str .= sprintf("<%s%s%s>%s</%s>\n", 
    10191021                             $this->_conv_case('option', 'tag'), 
    1020                              !empty($option['value']) ? sprintf($value_str, $option['value']) : '', 
     1022                             isset($option['value']) ? sprintf($value_str, $option['value']) : '', 
    10211023                             $selected,  
    10221024                             Q($option['text'], 'strict', FALSE), 
    10231025                             $this->_conv_case('option', 'tag')); 
    10241026      } 
    1025                               
     1027 
    10261028    // return final tag 
    10271029    return sprintf('<%s%s>%s</%s>%s', 
  • trunk/roundcubemail/program/steps/mail/compose.inc

    r493 r497  
    767767                 array(5, 4, 0, 2, 1)); 
    768768                  
    769   $sel = isset($_POST['_priority']) ? $_POST['_priority'] : rcube_label('normal'); 
     769  $sel = isset($_POST['_priority']) ? $_POST['_priority'] : 0; 
    770770 
    771771  $out = $form_start ? "$form_start\n" : ''; 
Note: See TracChangeset for help on using the changeset viewer.