adding a group by uid to avoid duplication
This commit is contained in:
parent
14bb794dd0
commit
45990307b1
|
@ -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';
|
||||||
|
|
Loading…
Reference in New Issue