adding a group by uid to avoid duplication

This commit is contained in:
Fran��ois Serman 2013-09-23 11:11:45 +00:00
parent 14bb794dd0
commit 45990307b1
1 changed files with 2 additions and 0 deletions

View File

@ -300,6 +300,8 @@ class m_admin {
if ($pattern && preg_match('/[.a-zA-Z0-9]+/', $pattern)) if ($pattern && preg_match('/[.a-zA-Z0-9]+/', $pattern))
$request .= sprintf(' AND domaine LIKE "%%%s%%"', $pattern); $request .= sprintf(' AND domaine LIKE "%%%s%%"', $pattern);
$request .= ' GROUP BY uid';
} elseif ($pattern_type === 'login') { } elseif ($pattern_type === 'login') {
$request = 'SELECT uid FROM membres WHERE 1'; $request = 'SELECT uid FROM membres WHERE 1';