diff --git a/Classes/Form/Element/ReadabilityAnalysis.php b/Classes/Form/Element/ReadabilityAnalysis.php index adc660d7..df309273 100644 --- a/Classes/Form/Element/ReadabilityAnalysis.php +++ b/Classes/Form/Element/ReadabilityAnalysis.php @@ -18,7 +18,7 @@ public function render(): array $allowedDoktypes = YoastUtility::getAllowedDoktypes(); if ($this->data['tableName'] === 'pages' - && !\in_array((int)$this->data['databaseRow']['doktype'][0], $allowedDoktypes)) { + && !\in_array((int)($this->data['databaseRow']['doktype'][0] ?? 0), $allowedDoktypes)) { $templateView->assign('wrongDoktype', true); } $templateView->assign('subtype', '');