Skip to content

Nodes where #74

@demortx

Description

@demortx

Nodes where array( 1, 2, 3, ....)

line 2556

} else if (!is_numeric($this->getRequest('node_id')) && !is_array($this->getRequest('node_id'))) { // Throw error if the 'limit' argument is set but not a number. $this->throwError(21, 'node_id'); }
line 5150

`if (!empty($conditions['node_id'])) {
if (is_array($conditions['node_id'])) {

            $temp_node = array();
            foreach($conditions['node_id'] as $val_id){
                if(intval($val_id) > 0)
                    $temp_node[] = intval($val_id);
            }
            $conditions['node_id'] = $temp_node;
            unset($temp_node);

            $sqlConditions[] = 'thread.node_id IN (' . implode(",", $conditions['node_id']) . ')';
        } else {
            $sqlConditions[] = 'thread.node_id = ' . $db->quote($conditions['node_id']);
        }
    }`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions