--- localizernode.module	2007-07-24 15:18:44.000000000 -0700
+++ localizernode.module.menu_fix	2007-07-24 15:17:50.000000000 -0700
@@ -13,14 +13,16 @@
   $items = array();
 
   if(!$may_cache) {
-    $items[] = array(
-      'path' => 'node/'. arg(1) .'/localizernode',
-      'title' => t('Translations'),
-      'callback' => 'localizernode_node_page',
-      'access' => user_access('administer localizer'),
-      'type' => MENU_LOCAL_TASK,
-      'weight' => 3
-    );
+    if (arg(0) == 'node' && is_numeric(arg(1))) {
+      $items[] = array(
+        'path' => 'node/'. arg(1) .'/localizernode',
+        'title' => t('Translations'),
+        'callback' => 'localizernode_node_page',
+        'access' => user_access('administer localizer'),
+        'type' => MENU_LOCAL_TASK,
+        'weight' => 3
+      );
+    }
   }
   return $items;
 }
