| @@ -93,9 +93,9 @@ | ||
| 93 | 93 | $this->propText => htmlentities($this->optional), |
| 94 | 94 | '__params__' => (object) array('className' => 'optional')))+ $this->items; |
| 95 | 95 | } |
| 96 | 96 | // Build HTML select. |
| 97 | - $listName = ($this->options['standard'] == true) ? "name='{$this->name}'" : ''; | |
| 97 | + $listName = (isset($this->options['standard']) && ($this->options['standard'] == true)) ? "name='{$this->name}'" : ''; | |
| 98 | 98 | $list = "<select id='{$this->id}' {$listName} class='{$this->classesList}' {$this->moreIntoTag}>"; |
| 99 | 99 | foreach ($this->items as $key => $item) { |
| 100 | 100 | // Standrize the use of object. |
| 101 | 101 | $item = (object) $item; |
| @@ -114,9 +114,9 @@ | ||
| 114 | 114 | } |
| 115 | 115 | $list .= '</select>'; |
| 116 | 116 | // If this is the first instance to be outputed for the current form output the control field. |
| 117 | 117 | $fieldKey = "{$this->form}-{$this->name}"; |
| 118 | - if (!$this->options['standard'] && !in_array($fieldKey, self::$instances)) { | |
| 118 | + if ((!isset($this->options['standard'])) && (!in_array($fieldKey, self::$instances))) { | |
| 119 | 119 | // Output control fields. |
| 120 | 120 | $list .= "<input type='hidden' name='{$this->name}' value='{$this->value}' />"; |
| 121 | 121 | // Mark form as instantiated! |
| 122 | 122 | self::$instances[] = $fieldKey; |