diff --git a/src/seoelements/SeoEntry.php b/src/seoelements/SeoEntry.php index 2a5e8e31e..ad2bf0064 100644 --- a/src/seoelements/SeoEntry.php +++ b/src/seoelements/SeoEntry.php @@ -321,8 +321,11 @@ public static function typeMenuFromHandle(string $sourceHandle): array $section = self::sourceModelFromHandle($sourceHandle); if ($section !== null) { $entryTypes = $section->getEntryTypes(); - foreach ($entryTypes as $entryType) { - $typeMenu[$entryType->id] = $entryType->name; + // Only create a menu if there's more than 1 entry type + if (count($entryTypes) > 1) { + foreach ($entryTypes as $entryType) { + $typeMenu[$entryType->id] = $entryType->name; + } } }