Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Feb 25, 2023

Conversation

DavidR93
Copy link
Contributor

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

@sebkln sebkln merged commit 4b80523 into sebkln:master Feb 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants