X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fuserset.inc.php;h=382909066317e42e598608c86db9688ad0e532f1;hb=730a173a333507926e0029d8a96c3a26b55756e4;hp=382baa3d758cbf3c3c23192c014ae7b1242278df;hpb=92e805609fe9c4306542a0c9fde30606aec6fca4;p=platal.git diff --git a/include/userset.inc.php b/include/userset.inc.php index 382baa3..3829090 100644 --- a/include/userset.inc.php +++ b/include/userset.inc.php @@ -88,7 +88,7 @@ class SearchSet extends UserSet $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(); @@ -186,7 +186,8 @@ class MinificheView extends MultipageView 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()