Skip to content

Commit

Permalink
Fix root element variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-lenz committed Jun 14, 2019
1 parent fc6bbf0 commit 7cd9316
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/foreignField/ForeignFieldModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ public function getOwner() {
* @return ElementInterface|null
*/
public function getRoot() {
if (!isset($this->_rootElement)) {
$this->_rootElement = is_null($this->_owner)
if (!isset($this->_root)) {
$this->_root = is_null($this->_owner)
? null
: $this->getParentElement($this->_owner);
}

return $this->_rootElement;
return $this->_root;
}

/**
Expand Down

0 comments on commit 7cd9316

Please sign in to comment.