Don't filter params if library or params is not set
parent
c4e52f4f29
commit
85d2e2eb75
|
@ -2000,6 +2000,10 @@ class H5PCore {
|
|||
return $content['filtered'];
|
||||
}
|
||||
|
||||
if (!(isset($content['library']) && isset($content['params']))) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// Validate and filter against main library semantics.
|
||||
$validator = new H5PContentValidator($this->h5pF, $this);
|
||||
$params = (object) array(
|
||||
|
|
Loading…
Reference in New Issue