From 655a8cd1449763f7e4d4c0e87a2a6885639f479c Mon Sep 17 00:00:00 2001 From: Svein-Tore Griff With Date: Sat, 1 Dec 2012 10:54:15 +0100 Subject: [PATCH] Incremental changes --- h5p.classes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h5p.classes.php b/h5p.classes.php index ede62ec..8e5406a 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -462,7 +462,7 @@ class h5pSaver { } public function savePackage($contentId) { - foreach ($this->h5pC->librariesJsonData as $key => $value) { + foreach ($this->h5pC->librariesJsonData as $key => &$value) { if (!$this->h5pF->isStoredLibrary($key, key($value))) { $current_path = $this->h5pF->getUploadedH5pFolderPath() . DIRECTORY_SEPARATOR . $key; $destination_path = $this->h5pF->getH5pPath() . DIRECTORY_SEPARATOR . 'libraries' . DIRECTORY_SEPARATOR . $key;