PaulB
Well-known member
- Affected version
- 2.2.13
\XF\Pub\Controller\Conversation::assertViewableMessage, lines 1130 through 1141:
That last line won't have any effect because the return value isn't assigned to anything.
PHP:
protected function assertViewableMessage($messageId, array $extraWith = [])
{
$extraWith[] = 'Conversation';
$visitor = \XF::visitor();
if ($visitor->user_id)
{
$extraWith[] = 'Conversation.Recipients|' . $visitor->user_id;
$extraWith[] = 'Conversation.Users|' . $visitor->user_id;
}
array_unique($extraWith);
That last line won't have any effect because the return value isn't assigned to anything.