$qSearch = new QuickSearch('quick');
$fields = new SFieldGroup(true, array($qSearch));
if ($qSearch->isEmpty()) {
- new ThrowError('Recherche trop générale.');
+ new ThrowError('Aucun critère de recherche n\'est spécifié.');
}
$this->score = $qSearch->get_score_statement();
$pwhere = $fields->get_where_statement();
ad1.text AS app1text, ad1.url AS app1url, ai1.type AS app1type,
adr.city, gp.a2, gp.pays AS countrytxt, gr.name AS region,
IF(u.nom_usage<>'',u.nom_usage,u.nom) AS sortkey,
- COUNT(em.email) > 0 AS actif" . (S::logged() ? ", c.contact AS contact" : '');
+ (COUNT(em.email) > 0 OR FIND_IN_SET('googleapps', u.mail_storage) > 0) AS actif" .
+ (S::logged() ? ", c.contact AS contact" : '');
}
public function joins()
{
return "u.user_id AS id,
u.*, a.alias AS forlife," .
- (S::logged() ? "q.profile_mobile AS mobile, " : "IF(q.profile_mobile_pub = 'public', q.profile_mobile, NULL) as mobile, ") .
"u.perms != 'pending' AS inscrit,
u.perms != 'pending' AS wasinscrit,
u.deces != 0 AS dcd, u.deces,