Index: textfield_autocomplete.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/textfield_autocomplete/textfield_autocomplete.module,v
retrieving revision 1.1
diff -u -r1.1 textfield_autocomplete.module
--- textfield_autocomplete.module	31 Aug 2007 16:18:43 -0000	1.1
+++ textfield_autocomplete.module	3 Oct 2007 13:29:37 -0000
@@ -157,12 +157,11 @@
 
     while ($row = db_fetch_array($result)) {
       foreach ($row as $colname => $colval) {
-        $items[] = $colval;
+        $items[$colval] = $colval;
       } // foreach col value
     } // while there's rows
   } // foreach table
 
-  if ($items) { $items = array_combine($items, $items); } 
   echo drupal_to_js($items);
   die();
 } // function nonsense_autocomplete
