Skip to content

Commit

Permalink
Update PageSectionsExtension.php
Browse files Browse the repository at this point in the history
fix(extension): avoid error if applied to non-versioned dataObject
  • Loading branch information
flxqr2 authored Nov 8, 2022
1 parent b4ec6ab commit b0b6061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PageSectionsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function __call($method, $arguments)
}

// Fix for archived errors
if ($this->owner->isArchived()) {
if (method_exists($this->owner, 'isArchived') && $this->owner->isArchived()) {
return new PageSection();
}

Expand Down

0 comments on commit b0b6061

Please sign in to comment.