sebkln / content_slug

Adds a slug field for human-readable anchors ("domain.com/page/#my-section") to TYPO3 content elements. By default, this anchor is rendered as the header's id attribute.
GNU General Public License v2.0
11 stars 5 forks source link

[BUGFIX] condition to check if query has a result #15

Closed DavidR93 closed 1 year ago

DavidR93 commented 1 year ago

If the content element referenced by the anchor of a page link is not available in database (tt_content) the query result is "false" in Hook-Class "ReplaceFragment.php" line 73. I added a condition to check for a valid result to prevent an exception.

Addresses this issue #14