diff --git a/h5p-default-storage.class.php b/h5p-default-storage.class.php index 696e8de..0c67341 100644 --- a/h5p-default-storage.class.php +++ b/h5p-default-storage.class.php @@ -85,7 +85,9 @@ class H5PDefaultStorage implements \H5PFileStorage { */ public function cloneContent($id, $newId) { $path = $this->path . '/content/'; - self::copyFileTree($path . $id, $path . $newId); + if (file_exists($path . $id)) { + self::copyFileTree($path . $id, $path . $newId); + } } /**