• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Watched forums when there are no forums

bart

Active member
#1
You get this error when you click on "watched forums" but don't have any forums at all.

An exception occurred: Undefined index: nodeParents in /data/www/xen/library/XenForo/ViewPublic/Watched/Forums.php on line 13
  1. XenForo_Application::handlePhpError() in XenForo/ViewPublic/Watched/Forums.php at line 13
  2. XenForo_ViewPublic_Watched_Forums->renderHtml() in XenForo/ViewRenderer/Abstract.php at line 227
  3. XenForo_ViewRenderer_Abstract->renderViewObject() in XenForo/ViewRenderer/HtmlPublic.php at line 67
  4. XenForo_ViewRenderer_HtmlPublic->renderView() in XenForo/FrontController.php at line 572
  5. XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158
  6. XenForo_FrontController->run() in /data/www/xen/index.php at line 13
Not a very interesting bug, I agree. :)
 

Mike

XenForo developer
Staff member
#4
It does actually happen with no add-ons, just only with no nodes by default. It's possible for that function to return an empty array and the watched forums view wasn't handling it correctly.