diff --git a/adherents2contacts.php b/adherents2contacts.php index 34dd045..e423d6b 100644 --- a/adherents2contacts.php +++ b/adherents2contacts.php @@ -31,6 +31,7 @@ while($a = $db->result->fetch_array()) $civility =""; break; } + $query = "SELECT EXISTS(SELECT 1 FROM llx_socpeople WHERE ref_ext='" . $a['rowid'] . "')"; $db_contacts->query($query); $r= $db_contacts->result->fetch_array();