From 727e88908a7503860d9bd833672c490eae1deb24 Mon Sep 17 00:00:00 2001 From: Paal Joergensen Date: Tue, 11 Apr 2017 14:51:27 +0200 Subject: [PATCH] Made statistics being sent on updateContentTypeCache [HFP-931] --- h5p.classes.php | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/h5p.classes.php b/h5p.classes.php index f3b9970..1fe5140 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -2836,19 +2836,9 @@ class H5PCore { public function updateContentTypeCache($postData = NULL) { $interface = $this->h5pF; - // Set uuid - if (!$postData || !isset($postData['uuid'])) { - $site_uuid = $this->h5pF->getOption('site_uuid', ''); - - // Register site with site uuid if we don't already have it - // and try to update content type cache again when this is done - if (empty($site_uuid)) { - return $this->fetchLibrariesMetadata(); - } - - $postData = array( - 'uuid' => $site_uuid - ); + // Make sure data is sent! + if (!isset($postData) || !isset($postData['uuid'])) { + return $this->fetchLibrariesMetadata(); } $postData['current_cache'] = $this->h5pF->getOption('content_type_cache_updated_at', 0);