diff --git a/src/extensions/Embeddable.php b/src/extensions/Embeddable.php index a29a8aa..2f5dbfc 100644 --- a/src/extensions/Embeddable.php +++ b/src/extensions/Embeddable.php @@ -132,7 +132,7 @@ public function updateCMSFields(FieldList $fields) ) ); - if (isset($owner->AllowedEmbedTypes) && Count($owner->AllowedEmbedTypes) > 1) { + if (isset($owner->AllowedEmbedTypes) && is_array($owner->AllowedEmbedTypes) && Count($owner->AllowedEmbedTypes) > 1) { $fields->addFieldToTab( 'Root.' . $tab, ReadonlyField::create(