Merged changes from stable branch up to 2.3.12
[fa-stable.git] / sales / includes / db / customers_db.inc
index 21ce5e41e871791fbf20d96f99a70ad6baed339b..13dbaad68d1e447a240883d2142b8d74bf176a27 100644 (file)
@@ -154,8 +154,11 @@ function get_customer_contacts($customer_id, $action=null)
        $results = array();
        $res = get_crm_persons('customer', $action, $customer_id);
        while($contact = db_fetch($res))
+       {
+               if ($contact['lang'] == 'C') // Fix for improper lang in demo sql files.
+                       $contact['lang'] = '';
                $results[] = $contact;
-
+       }       
        return $results;
 }