| @@ -243,9 +243,9 @@ | ||
| 243 | 243 | //parse_extension |
| 244 | 244 | ++$index; |
| 245 | 245 | } |
| 246 | 246 | |
| 247 | - if (count($body->parameters = self::extractParameters($structure[2], []))) { | |
| 247 | + if (isset($structure[2]) && is_array($structure[2]) && count($body->parameters = self::extractParameters($structure[2], []))) { | |
| 248 | 248 | $body->ifparameters = 1; |
| 249 | 249 | } else { |
| 250 | 250 | $body->parameters = (object)[]; |
| 251 | 251 | } |