mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
issue 2826, using trim() when comparison extra_var value
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12661 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
336c2f3ba5
commit
b59994c5c2
1 changed files with 2 additions and 2 deletions
|
|
@ -330,7 +330,7 @@ class ExtraItem
|
|||
$buff .= '<select name="'.$column_name.'" class="select">';
|
||||
foreach($default as $v)
|
||||
{
|
||||
if($value && in_array($v,$value)) $selected = ' selected="selected"';
|
||||
if($value && in_array(trim($v),$value)) $selected = ' selected="selected"';
|
||||
else $selected = '';
|
||||
$buff .= '<option value="'.$v.'" '.$selected.'>'.$v.'</option>';
|
||||
}
|
||||
|
|
@ -341,7 +341,7 @@ class ExtraItem
|
|||
$buff .= '<ul>';
|
||||
foreach($default as $v)
|
||||
{
|
||||
if($value && in_array($v,$value)) $checked = ' checked="checked"';
|
||||
if($value && in_array(trim($v),$value)) $checked = ' checked="checked"';
|
||||
else $checked = '';
|
||||
|
||||
// Temporary ID for labeling
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue