From 375d7a5d58021be6f87d441341f61970c8592ed5 Mon Sep 17 00:00:00 2001
From: martin <martin@siarp.de>
Date: Sun, 7 Feb 2010 13:40:24 +0100
Subject: [PATCH] add condition to also display a translatable node if there's only one language but it's the current one

---
 nodeblock.module |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/nodeblock.module b/nodeblock.module
index 5c57494..cdffca6 100644
--- a/nodeblock.module
+++ b/nodeblock.module
@@ -131,9 +131,9 @@ function nodeblock_block($op = 'list', $delta = 0, $edit = array()) {
       if ($translations[$language->language]) {
         $node = node_load($translations[$language->language]->nid);
       }
-      elseif (!$node->nodeblock_translation_fallback) {
-        // if no translation was found, and not using the fallback option
-        // return nothing, so the block doesn't display.
+      elseif (!$node->nodeblock_translation_fallback && $node->language !== $language->language) {
+        // if no translation was found, the node's language is not the current language,
+        // and not using the fallback option return nothing, so the block doesn't display.
         return;
       }
       // otherwise we just use the main node
-- 
1.6.6

