|
@@ 185-188 (lines=4) @@
|
| 182 |
|
{ |
| 183 |
|
$arrOptions = array(); |
| 184 |
|
// Add empty option if there are none |
| 185 |
|
if (empty($this->arrOptions) || !is_array($this->arrOptions)) |
| 186 |
|
{ |
| 187 |
|
$this->arrOptions = array(array('value' => '', 'label' => '-')); |
| 188 |
|
} |
| 189 |
|
// Generate options |
| 190 |
|
foreach ($this->arrOptions as $arrOption) |
| 191 |
|
{ |
|
@@ 226-229 (lines=4) @@
|
| 223 |
|
$this->varValue = $this->varValue[0]; |
| 224 |
|
} |
| 225 |
|
// Add empty option if there are none |
| 226 |
|
if (empty($this->arrOptions) || !is_array($this->arrOptions)) |
| 227 |
|
{ |
| 228 |
|
$this->arrOptions = array(array('value'=>'', 'label'=>'-')); |
| 229 |
|
} |
| 230 |
|
foreach ($this->arrOptions as $arrOption) |
| 231 |
|
{ |
| 232 |
|
$strOptions .= sprintf('<option value="%s"%s>%s</option>', |