From b9db60556c2af6dc1080e59bf3eb4a71c273824d Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Wed, 11 Dec 2013 14:55:19 +0000 Subject: [PATCH] Dans la page de gestion des comptes, le truc de recherche de domaine n'avait pas de filtre sur le createur (arg !) --- bureau/class/m_admin.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bureau/class/m_admin.php b/bureau/class/m_admin.php index cdc54be0..73e7d966 100644 --- a/bureau/class/m_admin.php +++ b/bureau/class/m_admin.php @@ -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') {