Dans la page de gestion des comptes, le truc de recherche de domaine n'avait pas de filtre sur le createur (arg !)

This commit is contained in:
Alan Garcia 2013-12-11 14:55:19 +00:00
parent 9e01789940
commit b9db60556c
1 changed files with 7 additions and 0 deletions

View File

@ -300,6 +300,13 @@ class m_admin {
if ($pattern && preg_match('/[.a-zA-Z0-9]+/', $pattern))
$request .= sprintf(' AND domaine LIKE "%%%s%%"', $pattern);
if ($creator)
$request .= sprintf(' AND compte in (select uid from membres where creator = "%s" ) ', $creator);
if ($mem->user['uid']!=2000 && !$all)
$request .= sprintf(' AND compte in (select uid from membres where creator = "%s") ', $cuid);
$request .= ' GROUP BY uid';
} elseif ($pattern_type === 'login') {