Skip to content

Commit

Permalink
Merge branch 'craft-4' of https://github.com/verbb/hyper into craft-5
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Jul 7, 2024
2 parents a1c2951 + 0749352 commit 797aca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/ElementLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ abstract public static function elementType(): string;
public function count(): int|bool
{
// Override `Link::count` to not rely on a URL, as not all elements have a URL, but still have a value
return $this->linkValue ? true : false;
return $this->getElement() ? true : false;
}

public function setAttributes($values, $safeOnly = true): void
Expand Down

0 comments on commit 797aca3

Please sign in to comment.