- Affected version
- 2.1.6
XFRM 2.1.6 adds spam-cleaner support for various XFRM content types.
However in
This really should be an
However in
XF\Entity\ApprovalQueue::getDefaultActions
, it assumes each content has a User
relationship for ownership but ResourceVersion
, and ResourceUpdate
do not.
PHP:
...
if ($content->User)
{
$user = $content->User;
}
This really should be an
isset($content->User)
and for ResourceVersion
, and ResourceUpdate
to have a User
relationship