From 45990307b130c66c9b059262e6dcd070a689e872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=EF=BF=BD=EF=BF=BDois=20Serman?= Date: Mon, 23 Sep 2013 11:11:45 +0000 Subject: [PATCH] adding a group by uid to avoid duplication --- bureau/class/m_admin.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bureau/class/m_admin.php b/bureau/class/m_admin.php index dcf58d01..4a512a44 100644 --- a/bureau/class/m_admin.php +++ b/bureau/class/m_admin.php @@ -300,6 +300,8 @@ class m_admin { if ($pattern && preg_match('/[.a-zA-Z0-9]+/', $pattern)) $request .= sprintf(' AND domaine LIKE "%%%s%%"', $pattern); + $request .= ' GROUP BY uid'; + } elseif ($pattern_type === 'login') { $request = 'SELECT uid FROM membres WHERE 1';