--- lineage.module 2008-09-05 02:15:48.000000000 -0500 +++ lineage_fix_parent_zero.module 2009-10-22 13:05:30.000000000 -0500 @@ -53,7 +53,7 @@ function lineage_update_term_r($term, $b $tids[$term->tid] = true; // Update all the children. - $result = db_query("SELECT td.tid, td.name, td.weight FROM {term_hierarchy} th LEFT JOIN {term_data} td ON td.tid = th.tid WHERE th.parent = '%d'", $term->tid); + $result = db_query("SELECT td.tid, td.name, td.weight FROM {term_hierarchy} th INNER JOIN {term_data} td ON td.tid = th.tid WHERE th.parent = '%d'", $term->tid); while ($child = db_fetch_object($result)) { // loop protection, just in case. if (!isset($tids[$child->tid])) {