Index: i18ntaxonomy.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/i18n/i18ntaxonomy/i18ntaxonomy.module,v
retrieving revision 1.5.2.5
diff -u -p -r1.5.2.5 i18ntaxonomy.module
--- i18ntaxonomy.module	1 Apr 2008 16:10:33 -0000	1.5.2.5
+++ i18ntaxonomy.module	29 Jul 2008 10:53:08 -0000
@@ -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';
+        }
       }
     }
   }
