Skip to content

Conversation

@BentiGorlich
Copy link
Member

$dto->magazine seems to be null relatively often, so switch to the already used $dto->post->magazine

Fixes this error:

ERROR: php: Warning: Attempt to read property "apId" on null

Introduced in #1636

Same as #1666 but for post comments

$dto->magazine seems to be null relatively often, so switch to the already used $dto->post->magazine

Fixes this error:
> ERROR: php: Warning: Attempt to read property "apId" on null

Introduced in #1636
@BentiGorlich BentiGorlich requested a review from melroy89 July 6, 2025 09:29
@BentiGorlich BentiGorlich self-assigned this Jul 6, 2025
@BentiGorlich BentiGorlich added bug Something isn't working backend Backend related issues and pull requests labels Jul 6, 2025
@BentiGorlich BentiGorlich merged commit 5cfadf3 into main Jul 6, 2025
7 checks passed
@BentiGorlich BentiGorlich deleted the fix/reading-apId-on-null-2 branch July 6, 2025 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Backend related issues and pull requests bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants