diff --git a/h5p.classes.php b/h5p.classes.php index 7e58d6c..1021375 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -2344,7 +2344,7 @@ class H5PCore { * rebuilt only if non-existing */ public function validateLibrarySupport($force = false) { - if (!($this->h5pF->getUnsupportedLibraries() === NULL || $force)) { + if (!$force && $this->h5pF->getUnsupportedLibraries() !== NULL) { return; } @@ -2379,9 +2379,8 @@ class H5PCore { ); } } - - $this->h5pF->setUnsupportedLibraries(empty($unsupportedLibraries) ? NULL : $unsupportedLibraries); } + $this->h5pF->setUnsupportedLibraries($unsupportedLibraries); } /**