- Affected version
- 2.1.7
PHP:
public function canView(&$error = null)
{
$visitor = \XF::visitor();
return $this->Users[$visitor->user_id] ? true : false;
}
If the visitor user id is not part of
Users
, then AbstractCollection will throw "Undefined offset" instead of returning false.