From c4f2b26116bbf5f3dbbe4dcd1ee0a306de7e99d1 Mon Sep 17 00:00:00 2001 From: thomasmars Date: Sun, 9 Apr 2017 17:43:56 +0200 Subject: [PATCH] Make sure contentId are handled when passed as strings --- h5p-default-storage.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h5p-default-storage.class.php b/h5p-default-storage.class.php index 2147f9b..8d2daf8 100644 --- a/h5p-default-storage.class.php +++ b/h5p-default-storage.class.php @@ -372,7 +372,7 @@ class H5PDefaultStorage implements \H5PFileStorage { return NULL; } - if ($contentId === NULL || $contentId === 0) { + if ($contentId === NULL || $contentId == 0) { $target = $this->getEditorPath(); } else {