Commit 738dd5f3 authored by Steven Wittens's avatar Steven Wittens
Browse files

#9292: Minor PHP5 fix.

parent 9d517a73
......@@ -770,7 +770,7 @@ function taxonomy_select_nodes($tids = array(), $operator = 'or', $depth = 0, $p
foreach ($tids as $index => $tid) {
$term = taxonomy_get_term($tid);
$tree = taxonomy_get_tree($term->vid, $tid, -1, $depth);
$descendant_tids[] = array_merge($tid, array_map('_taxonomy_get_tid_from_term', $tree));
$descendant_tids[] = array_merge(array($tid), array_map('_taxonomy_get_tid_from_term', $tree));
}
if ($operator == 'or') {
......
......@@ -770,7 +770,7 @@ function taxonomy_select_nodes($tids = array(), $operator = 'or', $depth = 0, $p
foreach ($tids as $index => $tid) {
$term = taxonomy_get_term($tid);
$tree = taxonomy_get_tree($term->vid, $tid, -1, $depth);
$descendant_tids[] = array_merge($tid, array_map('_taxonomy_get_tid_from_term', $tree));
$descendant_tids[] = array_merge(array($tid), array_map('_taxonomy_get_tid_from_term', $tree));
}
if ($operator == 'or') {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment