sonnb
Well-known member
At the line 963:
I guess the second call should be $nonVisibleMessageIds instead of $visibleMessageIds
PHP:
$visibleMessageIds = array();
$nonVisibleMessageIds = array();
foreach ($messages AS $messageId => $message)
{
if (empty($message['message_state']) || $message['message_state'] == 'visible')
{
$visibleMessageIds[] = $messageId;
}
else
{
$nonVisibleMessageIds[] = $messageId;
}
}
$this->getModelFromCache('XenForo_Model_Like')->deleteContentLikes(
$messageContentType, $visibleMessageIds, ($this->get('discussion_state') == 'visible')
);
$this->getModelFromCache('XenForo_Model_Like')->deleteContentLikes(
$messageContentType, $visibleMessageIds, false
);
I guess the second call should be $nonVisibleMessageIds instead of $visibleMessageIds