Jaxel
Well-known member
Line 273 of XenForo_Model_Thread:
Can we get this changed to:
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.
Code:
$sqlConditions[] = 'thread.node_id = ' . $db->quote($conditions['forum_id']);
Can we get this changed to:
Code:
$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.
Upvote
0