Skip groups that are null. This is done because groups with only one entry are concatenated with their entry.
parent
3f6abd722d
commit
99522f59bf
|
@ -2811,6 +2811,10 @@ class H5PContentValidator {
|
|||
}
|
||||
}
|
||||
if (!(isset($semantics->optional) && $semantics->optional)) {
|
||||
if ($group === NULL) {
|
||||
// Error no value. Errors aren't printed...
|
||||
return;
|
||||
}
|
||||
foreach ($semantics->fields as $field) {
|
||||
if (!(isset($field->optional) && $field->optional)) {
|
||||
// Check if field is in group.
|
||||
|
|
Loading…
Reference in New Issue