Don't filter params if library or params is not set

set-minimum-height-for-dialogs
Paal Joergensen 2018-10-23 10:56:44 +02:00
parent c4e52f4f29
commit 85d2e2eb75
1 changed files with 4 additions and 0 deletions

View File

@ -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(