Skip to content

Commit

Permalink
fix(core): get_registered_entity_types now returns empty array for type
Browse files Browse the repository at this point in the history
fixes #7843
  • Loading branch information
jdalsem committed Nov 14, 2017
1 parent 50f34c0 commit cc14cb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/lib/entities.php
Expand Up @@ -446,7 +446,7 @@ function get_registered_entity_types($type = null) {
$type = strtolower($type);
}

if (!empty($type) && empty($registered_entities[$type])) {
if (!empty($type) && !isset($registered_entities[$type])) {
return false;
}

Expand Down

0 comments on commit cc14cb0

Please sign in to comment.