|
@@ 179-182 (lines=4) @@
|
| 176 |
|
{ |
| 177 |
|
$arrOptions = array(); |
| 178 |
|
// Add empty option if there are none |
| 179 |
|
if (empty($this->arrOptions) || !is_array($this->arrOptions)) |
| 180 |
|
{ |
| 181 |
|
$this->arrOptions = array(array('value' => '', 'label' => '-')); |
| 182 |
|
} |
| 183 |
|
// Generate options |
| 184 |
|
foreach ($this->arrOptions as $arrOption) |
| 185 |
|
{ |
|
@@ 220-223 (lines=4) @@
|
| 217 |
|
$this->varValue = $this->varValue[0]; |
| 218 |
|
} |
| 219 |
|
// Add empty option if there are none |
| 220 |
|
if (empty($this->arrOptions) || !is_array($this->arrOptions)) |
| 221 |
|
{ |
| 222 |
|
$this->arrOptions = array(array('value'=>'', 'label'=>'-')); |
| 223 |
|
} |
| 224 |
|
foreach ($this->arrOptions as $arrOption) |
| 225 |
|
{ |
| 226 |
|
$strOptions .= sprintf('<option value="%s"%s>%s</option>', |