diff --git a/erp_customer/erp_customer.module b/erp_customer/erp_customer.module
index 2a820dd..77ef3cd 100644
--- a/erp_customer/erp_customer.module
+++ b/erp_customer/erp_customer.module
@@ -1134,6 +1134,7 @@ function erp_customer_autocomplete($string) {
   $sql = db_rewrite_sql($sql);
 
   $result = db_query_range($sql, $string, $string, 0, variable_get('erp_cust_autocomplete_count', 10));
+  $matches = array();
   while ($customer = db_fetch_object($result)) {
     $matches["[". $customer->customer_id ."] - ". $customer->title] =
       check_plain("[". $customer->customer_id ."] - ". $customer->title);
