Ticket #1945: components.class.php.patch
| File components.class.php.patch, 1.2 kB (added by thisboyiscrazy, 5 years ago) |
|---|
-
../../components.class.php
old new 560 560 $output = ''; 561 561 $onchange = ($onchange != '') ? " onchange=\"$onchange\"" : ''; 562 562 563 $output .= "\n\t\t\t<select name=\"$this->_elemname\" id=\"$this->_elemname\"$onchange> \n";563 $output .= "\n\t\t\t<select name=\"$this->_elemname\" id=\"$this->_elemname\"$onchange>"; 564 564 // include blank option if required 565 565 if ($canbeempty) 566 $output .= " <option value=\"\"> </option>";566 $output .= "\n\t\t\t\t<option value=\"\"> </option>"; 567 567 568 568 // build the options 569 569 foreach ($valarray as $item) { … … 571 571 $itemtext = (isset($item['text']) ? _($item['text']) : ''); 572 572 $itemselected = ($currentvalue == $itemvalue) ? ' selected' : ''; 573 573 574 $output .= "\ t\t\t\t<option value=\"$itemvalue\"$itemselected>$itemtext</option>\n";574 $output .= "\n\t\t\t\t<option value=\"$itemvalue\"$itemselected>$itemtext</option>"; 575 575 } 576 $output .= "\ t\t\t</select>\n\t\t";576 $output .= "\n\t\t\t</select>\n\t\t"; 577 577 578 578 return $output; 579 579 }
