Brent W
Well-known member
I am looking to exclude nodes from the getThreads method but this is the only Condition I see related to nodes. Is there not a way to do this using the getThreads method? I imagine I can work around it by getting a complete list of node ids and then removing the ones that I wish to include and then adding them to this... but that seems like overkill. Am I over looking something?
PHP:
if (!empty($conditions['node_id']))
{
if (is_array($conditions['node_id']))
{
$sqlConditions[] = 'thread.node_id IN (' . $db->quote($conditions['node_id']) . ')';
}
else
{
$sqlConditions[] = 'thread.node_id = ' . $db->quote($conditions['node_id']);
}
}