From fd2ac997ef87a6fdbdfe61ba05d1cc125cf571c6 Mon Sep 17 00:00:00 2001 From: Paal Joergensen Date: Fri, 26 Oct 2018 08:45:20 +0200 Subject: [PATCH] HFP-2328 Fix bug --- h5p-metadata.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h5p-metadata.class.php b/h5p-metadata.class.php index 6884e0e..3a504e3 100644 --- a/h5p-metadata.class.php +++ b/h5p-metadata.class.php @@ -85,7 +85,7 @@ abstract class H5PMetadata { continue; } - if ($metadata[$key] === null || isset($metadata[$key])) { + if (array_key_exists($key, $metadata)) { $value = $metadata[$key]; $db_field_name = strtolower(preg_replace('/(?