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

Fix the getCurrentRecord() method #4971

Merged
merged 2 commits into from
Jul 12, 2022
Merged

Conversation

leofeyer
Copy link
Member

Not sure if it should be if (!isset(self::$arrCurrentRecordCache[$key])) instead as in line 1758?

@leofeyer leofeyer requested review from aschempp and ausi July 11, 2022 11:56
@leofeyer leofeyer self-assigned this Jul 11, 2022
@leofeyer leofeyer added the bug label Jul 11, 2022
@leofeyer leofeyer added this to the 5.0 milestone Jul 11, 2022
@aschempp
Copy link
Member

both works imho, I would go with isset() for consistency

@leofeyer
Copy link
Member Author

Changed in 5462d19.

@leofeyer leofeyer merged commit ac0f7b8 into contao:5.x Jul 12, 2022
@leofeyer leofeyer deleted the fix/current-record branch July 12, 2022 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants