Index: translation.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/i18n/translation/Attic/translation.module,v
retrieving revision 1.3.2.15.2.3
diff -u -u -p -r1.3.2.15.2.3 translation.module
--- translation.module	28 Apr 2008 11:59:10 -0000	1.3.2.15.2.3
+++ translation.module	24 Jul 2008 14:53:29 -0000
@@ -1116,7 +1116,7 @@ function translation_url($url, $lang) {
  *   Translated node nid if exists, or $default
  */
 function translation_node_nid($nid, $language = NULL, $default = NULL) {
-  $translation = db_result(db_query("SELECT n.nid FROM {i18n_node} n INNER JOIN {i18n_node} a ON n.trid = a.trid AND n.nid <> a.nid WHERE a.nid = %d AND n.language = '%s' AND n.trid is not null", $nid, $language ? $language : i18n_get_lang()));
+  $translation = db_result(db_query("SELECT n.nid FROM {i18n_node} n INNER JOIN {i18n_node} a ON n.trid = a.trid AND n.nid <> a.nid WHERE a.nid = %d AND n.language = '%s' AND n.trid is not null AND n.trid <> 0", $nid, $language ? $language : i18n_get_lang()));
   return $translation ? $translation : $default;
 }
 
@@ -1133,7 +1133,7 @@ function translation_node_nid($nid, $lan
  *   Translated term tid if exists, or $default
  */
 function translation_term_tid($tid, $language = NULL, $default = NULL) {
-  $translation = db_result(db_query("SELECT t.tid FROM {term_data} t INNER JOIN {term_data} a ON t.trid = a.trid AND t.tid <> a.tid WHERE a.tid = %d AND t.language = '%s' AND t.trid is not null", $tid, $language ? $language : i18n_get_lang()));
+  $translation = db_result(db_query("SELECT t.tid FROM {term_data} t INNER JOIN {term_data} a ON t.trid = a.trid AND t.tid <> a.tid WHERE a.tid = %d AND t.language = '%s' AND t.trid is not null AND t.trid <> 0", $tid, $language ? $language : i18n_get_lang()));
   return $translation ? $translation : $default;
 }
 
