Excessive calls to variable_set HFJ-1893
parent
18e2b79cc6
commit
406a55be5c
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue