diff --git a/code/ExtraPageFieldsExtension.php b/code/ExtraPageFieldsExtension.php index 9392718..35785e0 100644 --- a/code/ExtraPageFieldsExtension.php +++ b/code/ExtraPageFieldsExtension.php @@ -66,10 +66,10 @@ public function onBeforeWrite() parent::onBeforeWrite(); - if (strlen($this->owner->MetaDescription) > $this->metaDescriptionLength) { + if (strlen($this->owner->MetaDescription) > $this->MetaDescriptionLength) { /** @var Text $value */ $value = $this->owner->dbObject('MetaDescription'); - $value = $value->LimitCharacters($this->metaDescriptionLength); + $value = $value->LimitCharacters($this->MetaDescriptionLength); $this->owner->MetaDescription = $value; };