diff --git a/htdocs/societe/class/api_thirdparties.class.php b/htdocs/societe/class/api_thirdparties.class.php index f0cf3fa595a..ddc9fa41fdb 100644 --- a/htdocs/societe/class/api_thirdparties.class.php +++ b/htdocs/societe/class/api_thirdparties.class.php @@ -1435,7 +1435,7 @@ class Thirdparties extends DolibarrApi $sql = "SELECT rowid, fk_soc, key_account, site, date_creation, tms FROM ".MAIN_DB_PREFIX."societe_account"; $sql .= " WHERE fk_soc = ".((int) $id); if ($site) { - $sql .= " AND site ='".$this->db-escape($site)."'"; + $sql .= " AND site ='".$this->db->escape($site)."'"; } $result = $this->db->query($sql);