Index: trunk/extensions/SpecialForm/SpecialForm.body.php |
— | — | @@ -288,9 +288,9 @@ |
289 | 289 | $field->setName($matches[1]); |
290 | 290 | $field->setLabel($matches[2]); |
291 | 291 | $field->setFieldType($matches[3]); |
292 | | - if ($matches[4]) { |
| 292 | + if (count($matches) > 4 && $matches[4]) { |
293 | 293 | $field->setDescription($matches[5]); |
294 | | - if ($matches[6]) { |
| 294 | + if (count($matches) > 6 && $matches[6]) { |
295 | 295 | $rawOptions = explode(',', $matches[7]); |
296 | 296 | foreach ($rawOptions as $rawOption) { |
297 | 297 | if (preg_match('/^(\w+)=(.+)/', $rawOption, $optMatches)) { |