[bug] Ignore content and guest account

Rene

New Member
When ignoring a thread, and thread starter does not exist anymore (guest) you will get an error:
Code:
TypeError: Argument 1 passed to XF\Entity\User::canIgnoreUser() must be an instance of XF\Entity\User, null given, called in //public_html/src/addons/Truonglv/IgnoreContent/XF/Pub/Controller/Misc.php on line 89 in src/XF/Entity/User.php at line 761
[LIST=1]
[*]XF\Entity\User->canIgnoreUser() in src/addons/Truonglv/IgnoreContent/XF/Pub/Controller/Misc.php at line 89
[*]Truonglv\IgnoreContent\XF\Pub\Controller\Misc->actionIgnoreContent() in src/XF/Mvc/Dispatcher.phpat line 321
[*]XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 244
[*]XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 100
[*]XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 50
[*]XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2177
[*]XF\App->run() in src/XF.php at line 390
[*]XF::runApp() in index.php at line 20
[/LIST]
 
Top