1. 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...

Discussion in 'Closed Suggestions' started by Jaxel, Feb 9, 2011.

  1. Jaxel

    Jaxel 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.
  2. Onimua

    Onimua Well-Known Member

    $db->quote already does if I'm not mistaken.

Share This Page