Skip to content

Commit

Permalink
fixed null pointer warnings on PHP 8
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsekaean committed Aug 11, 2022
1 parent 04803e3 commit 3525e33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extension/SEODataExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ public function validateKeyword(ValidationResult $result)
public function validateMetaTitle(ValidationResult $result)
{
$record = $this->owner;
$metaTitle = trim($record->MetaTitle);
$metaTitle = $record->MetaTitle ? trim($record->MetaTitle) : '';

if(empty($metaTitle)) {
$result->addFieldError('MetaTitle',
Expand Down

0 comments on commit 3525e33

Please sign in to comment.