--- i18ntaxonomy.module.orig	Thu Jun 26 12:49:08 2008
+++ i18ntaxonomy.module	Thu Jun 26 12:48:34 2008
@@ -575,16 +575,18 @@ function i18ntaxonomy_translate_terms($t
 function i18ntaxonomy_views_pre_view(&$view, &$items) {
   //var_dump($view);
   $translate = variable_get('i18ntaxonomy_vocabularies', array());
-  foreach($view->field as $index => $data) {
-    $matches = array();
-    if($data['id'] == 'term_node.name') {
-      // That's a full taxonomy box
-      $view->field[$index]['handler'] = 'i18ntaxonomy_views_handler_field_allterms';
-    } elseif(preg_match("/term_node_(\d+)\.name/", $data['id'], $matches)) {
-      $vid = $matches[1];
-      if ($translate[$vid]) {
-        // Set new handler for this field
+  if (is_array($view->field)) {
+    foreach($view->field as $index => $data) {
+      $matches = array();
+      if($data['id'] == 'term_node.name') {
+        // That's a full taxonomy box
         $view->field[$index]['handler'] = 'i18ntaxonomy_views_handler_field_allterms';
+      } elseif(preg_match("/term_node_(\d+)\.name/", $data['id'], $matches)) {
+        $vid = $matches[1];
+        if ($translate[$vid]) {
+          // Set new handler for this field
+          $view->field[$index]['handler'] = 'i18ntaxonomy_views_handler_field_allterms';
+        }
       }
     }
   }
