Excessive calls to variable_set HFJ-1893

pull/23/head
ndobromirov 2016-06-21 13:26:39 +02:00 committed by Frode Petterson
parent 18e2b79cc6
commit 406a55be5c
1 changed files with 2 additions and 3 deletions

View File

@ -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);
}
/**