diff --git a/htdocs/commande/list.php b/htdocs/commande/list.php
index 93a0d302fbf..e177ff9aae8 100644
--- a/htdocs/commande/list.php
+++ b/htdocs/commande/list.php
@@ -2216,7 +2216,7 @@ if ($resql) {
// Amount HT/net
if (!empty($arrayfields['c.total_ht']['checked'])) {
- print '
'.price($obj->total_ht)." | \n";
+ print ''.price($obj->total_ht)." | \n";
if (!$i) {
$totalarray['nbfield']++;
}
diff --git a/htdocs/contact/class/contact.class.php b/htdocs/contact/class/contact.class.php
index caea7e0c8d5..bc26f05611b 100644
--- a/htdocs/contact/class/contact.class.php
+++ b/htdocs/contact/class/contact.class.php
@@ -1789,6 +1789,8 @@ class Contact extends CommonObject
$sql = "SELECT sc.fk_socpeople as id, sc.fk_c_type_contact";
$sql .= " FROM ".MAIN_DB_PREFIX."c_type_contact tc";
$sql .= ", ".MAIN_DB_PREFIX."societe_contacts sc";
+ $sql .= " INNER JOIN ".MAIN_DB_PREFIX."socpeople sp";
+ $sql .= " ON sc.fk_socpeople = sp.rowid AND sp.statut = 1";
$sql .= " WHERE sc.fk_soc =".((int) $this->socid);
$sql .= " AND sc.fk_c_type_contact=tc.rowid";
$sql .= " AND tc.element = '".$this->db->escape($element)."'";
diff --git a/scripts/emailings/mailing-send.php b/scripts/emailings/mailing-send.php
index ec1fbd293d6..cf3f1897638 100755
--- a/scripts/emailings/mailing-send.php
+++ b/scripts/emailings/mailing-send.php
@@ -71,6 +71,8 @@ if (empty($conf->global->MAILING_LIMIT_SENDBYCLI)) {
$conf->global->MAILING_LIMIT_SENDBYCLI = 0;
}
+$langs->loadLangs(array("main", "mails"));
+
/*
* Main