Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nodes where #74

Open
demortx opened this issue Oct 17, 2016 · 0 comments
Open

Nodes where #74

demortx opened this issue Oct 17, 2016 · 0 comments

Comments

@demortx
Copy link

demortx commented Oct 17, 2016

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']);
        }
    }`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant