*** taxonomy.module	2009-02-11 14:00:10.000000000 +0000
--- taxonomy.module	2009-02-11 14:13:30.000000000 +0000
***************
*** 935,944 ****
  function _taxonomy_term_children($tid) {
    static $children;
  
!   if (!isset($children)) {
!     $result = db_query('SELECT tid, parent FROM {term_hierarchy}');
      while ($term = db_fetch_object($result)) {
!       $children[$term->parent][] = $term->tid;
      }
    }
    return isset($children[$tid]) ? $children[$tid] : array();
--- 935,944 ----
  function _taxonomy_term_children($tid) {
    static $children;
  
!   if (!isset($children[$tid])) {
!     $result = db_query('SELECT tid FROM {term_hierarchy} WHERE parent = %d', $tid);
      while ($term = db_fetch_object($result)) {
!       $children[$tid][] = $term->tid;
      }
    }
    return isset($children[$tid]) ? $children[$tid] : array();
