The function that lookup the parent does never return it, instead return an empty array:

// recurse until there are no more parents.
function _lineage_get_parent_lineage($tid) {
if (!$tid)
return array();
$term = db_fetch_object(db_query("SELECT td.tid, td.name, td.weight, th.parent FROM {term_hierarchy} th LEFT JOIN {term_data} td ON td.tid = th.tid WHERE td.tid = '%d'", $tid));

if (!$term->tid)
return $ret;

$ret = _lineage_get_parent_lineage($term->parent);
$ret['base'] .= lineage_string($term);
$ret['depth'] += 1;
- return array();
+ return $ret;

}

Comments

bago’s picture

Status: Active » Fixed

I see in the current version this has been fixed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.