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

Lack of interest Change Thread Conditions Forum ID...


Well-known member
Line 273 of XenForo_Model_Thread:
$sqlConditions[] = 'thread.node_id = ' . $db->quote($conditions['forum_id']);
Can we get this changed to:
$sqlConditions[] = 'thread.node_id IN (' . $db->quote($conditions['forum_id']) . ')';

This will not break current functionality, but it will also allow us to pass an array as well as a string, to allow the definition of multiple forums instead of just a single forum. Of course, $db->quote will need to have an array handler.