XenAPI
XenAPI copied to clipboard
Nodes where
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']);
}
}`