? .DS_Store
? 689322.user_terms.views-field-limit-vocab.patch
? 705990.user_terms.filter-empty-uids.patch
? CHANGELOG.txt
? _ALIASED TO BONES
? _MOVED
? _PATCHES
? tests
? user_terms.test
? user_terms_views_2-D6.patch
Index: user_terms_handler_field_term_user_tid.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/user_terms/Attic/user_terms_handler_field_term_user_tid.inc,v
retrieving revision 1.1.2.4
diff -u -p -r1.1.2.4 user_terms_handler_field_term_user_tid.inc
--- user_terms_handler_field_term_user_tid.inc	19 Jan 2010 15:20:23 -0000	1.1.2.4
+++ user_terms_handler_field_term_user_tid.inc	5 Feb 2010 20:34:38 -0000
@@ -49,9 +49,13 @@ class user_terms_handler_field_term_user
   function pre_render($values) {
     $this->field_alias = $this->aliases['uid'];
 
+    $uids = array();
     foreach ($values as $result) {
       $uids[$result->{$this->aliases['uid']}] = $result->{$this->aliases['uid']};
     }
+    
+    // Filter out the anonymous users: they can have no terms.
+    $uids = array_filter($uids);
 
     if ($uids) {
       $voc = '';
@@ -59,7 +63,7 @@ class user_terms_handler_field_term_user
         $voc = " AND td.vid IN (" . implode(', ', array_keys(array_filter($this->options['vids']))) . ")";
       }
 
-      $tids_string = implode(',', array_filter($uids));
+      $tids_string = implode(',', $uids);
       $result = db_query("SELECT td.*, tu.uid, v.name as vocabulary FROM {term_data} td INNER JOIN {term_user} tu ON td.tid = tu.tid INNER JOIN {vocabulary} v ON v.vid = td.vid WHERE tu.uid IN ($tids_string) $voc ORDER BY td.weight, td.name");
   
       while ($term = db_fetch_object($result)) {
