Skip to content

Commit

Permalink
Merge pull request #526 from kaystrobach/patch-3
Browse files Browse the repository at this point in the history
PHP Warning: Undefined array key 0 in /var/www/html/public/typo3conf/…
  • Loading branch information
RinyVT authored Jul 5, 2023
2 parents f3887b5 + 001b10f commit 5581a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Form/Element/ReadabilityAnalysis.php
Original file line number Diff line number Diff line change
Expand Up @@ -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', '');
Expand Down

0 comments on commit 5581a46

Please sign in to comment.