diff --git a/weight.module b/weight.module index ddbe195d95069188893a244ecf88645a8fc0f6a4..f125c51ba7f6b8247f0ba49fa55ae7b871f9400c 100644 --- a/weight.module +++ b/weight.module @@ -526,7 +526,7 @@ function _weight_set_weight($node) { } if (module_exists('translation') && $node->nid != $node->tnid) { - if ($settings['sync_translations']) { + if ($settings['sync_translations'] && $node->tnid != 0) { $weight = _weight_get_weight($node->tnid); } } @@ -553,7 +553,7 @@ function _weight_get_weight($node) { } elseif (module_exists('translation') && $node->nid != $node->tnid) { $settings = _weight_get_settings($node->type); - if ($settings['sync_translations']) { + if ($settings['sync_translations'] && $node->tnid != 0) { $nid = $node->tnid; } else {