- Affected version
- 2.2.6
If
$forum
is null, then the code which uses $forumTypeHandler
which is on all branches after fetching it from $forum
; will be accessing a method on a null
object instead of throwing/logging a useful/standard error message.
PHP:
$forumTypeHandler = $forum ? $forum->TypeHandler : null;
if (!$this->discussion_type)
{
...