From fd93b30a388a4146cc52a15332342fa18c400ece Mon Sep 17 00:00:00 2001 From: thomasmars Date: Thu, 16 Mar 2017 10:09:52 +0100 Subject: [PATCH] Fixed return statement of fetch libraries metadata HFP-489 --- h5p.classes.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/h5p.classes.php b/h5p.classes.php index 5c6c394..3889c72 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -2464,7 +2464,7 @@ class H5PCore { // Failed retrieving uuid if (!$registration) { $errorMessage = $this->h5pF->t('Site could not be registered with the hub. Please contact your site administrator.'); - return H5PCore::ajaxError( + H5PCore::ajaxError( $errorMessage, 'SITE_REGISTRATION_FAILED' ); @@ -2472,6 +2472,7 @@ class H5PCore { $this->h5pF->setErrorMessage( $this->h5pF->t('The H5P Hub has been disabled until this problem can be resolved. You may still upload libraries through the "H5P Libraries" page.') ); + return FALSE; } // Successfully retrieved new uuid