RSS Feed/News Conversation::assertViewableMessage: array_unique return value discarded

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,695
Points
823

Reputation:

\XF\Pub\Controller\Conversation::assertViewableMessage, lines 1130 through 1141:

PHP:

Code:
	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...

Read more

Continue reading...
 
Status
Not open for further replies.
Top