From 406a55be5ca4c4f3f85a4a12c82bd4c1e53a9356 Mon Sep 17 00:00:00 2001 From: ndobromirov Date: Tue, 21 Jun 2016 13:26:39 +0200 Subject: [PATCH] Excessive calls to variable_set HFJ-1893 --- h5p.classes.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); } /**