Fixed Exception when viewing reactions on conversation message by deleted user

Affected version
2.1.8

Kirby

Well-known member
Code:
ErrorException: [E_NOTICE] Trying to get property 'username' of non-object src/XF/Pub/Controller/Conversation.php:909
This does happen because of
PHP:
$title = \XF::phrase('members_who_reacted_to_message_by_x', ['user' => $message->User->username]);
In case of a deleted user $message->User is null.
 

XF Bug Bot

XenForo bug fixer bot
Staff member
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.1.9).

Change log:
Don't throw an error when trying to view reactions on a conversation message by a deleted user.
There may be a delay before changes are rolled out to the XenForo Community.
 
Top