diff --git a/htdocs/adherents/card.php b/htdocs/adherents/card.php
index ea0b7a16eb2..0910e85b9d3 100644
--- a/htdocs/adherents/card.php
+++ b/htdocs/adherents/card.php
@@ -1126,7 +1126,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
// State
if (!getDolGlobalString('MEMBER_DISABLE_STATE')) {
print '
| '.$langs->trans('State').' | ';
- if ($soc->country_id || GETPOSTISSET('country_id')) {
+ if ($soc->country_id || GETPOSTISSET('country_id')) {
print img_picto('', 'state', 'class="pictofixedwidth"');
print $formcompany->select_state(GETPOSTISSET('state_id') ? GETPOSTINT('state_id') : $soc->state_id, GETPOSTISSET('country_id') ? GETPOSTINT('country_id') : $soc->country_code);
} else {
diff --git a/htdocs/adherents/list.php b/htdocs/adherents/list.php
index 8769e9916cc..26c7594192c 100644
--- a/htdocs/adherents/list.php
+++ b/htdocs/adherents/list.php
@@ -280,7 +280,6 @@ if (empty($reshook)) {
$search_filter = "";
$search_status = "";
$search_import_key = '';
- $catid = "";
$search_all = "";
$toselect = array();
$search_datec_start = '';
@@ -523,7 +522,7 @@ if ($search_firstname) {
$sql .= natural_search("d.firstname", $search_firstname);
}
if ($search_lastname) {
- $sql .= natural_search(array("d.firstname", "d.lastname", "d.societe"), $search_lastname);
+ $sql .= natural_search("d.lastname", $search_lastname);
}
if ($search_gender != '' && $search_gender != '-1') {
$sql .= natural_search("d.gender", $search_gender);
@@ -532,7 +531,7 @@ if ($search_login) {
$sql .= natural_search("d.login", $search_login);
}
if ($search_company) {
- $sql .= natural_search("s.nom", $search_company);
+ $sql .= natural_search(array("s.nom", "d.societe"), $search_company);
}
if ($search_email) {
$sql .= natural_search("d.email", $search_email);
|