Fixed Undefined index: isIgnored - when viewing forum

skhms

Active member
Think this is new for 1.1 beta 3.
Undefined index: isIgnored

XenForo_Application::handlePhpError() in XenForo/ControllerPublic/Forum.php at line 147
XenForo_ControllerPublic_Forum->actionIndex() in XenForo/FrontController.php at line 310
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
XenForo_FrontController->run() in C:/Program Files (x86)/Zend/Apache2/htdocs/thedonnastourdb/index.php at line 13

Happens when you got a thread started by a guest.
Seems to be the prepareThread function in XenForo_Model_Thread. The isIgnored flag isn't set when the $thread['user_group_id'] value is uninitialized. Which happens when a guest has started the thread.

/SK
 
prepareUser is now always called, even for guest messages. Any modifications to this function must be able to survive potentially being given an incomplete (heavily null) user record.
 
Top Bottom