HFP-2328 Fix bug

semi-fullscreen
Paal Joergensen 2018-10-26 08:45:20 +02:00
parent 2e305ded71
commit fd2ac997ef
1 changed files with 1 additions and 1 deletions

View File

@ -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('/(?<!^)[A-Z]/', '_$0', $key));