diff --git a/h5p.classes.php b/h5p.classes.php index 3ab11db..4e53fa3 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -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(