From: Stéphane Jacob Date: Thu, 7 Oct 2010 08:48:06 +0000 (+0200) Subject: Fixes pid/uid mixed up error. X-Git-Tag: xorg/1.0.1~86 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=9f1cd432009e82bda9ddce6ff477d7f2e0bfe296;p=platal.git Fixes pid/uid mixed up error. Signed-off-by: Stéphane Jacob --- diff --git a/modules/register.php b/modules/register.php index c09d68d..44c1866 100644 --- a/modules/register.php +++ b/modules/register.php @@ -56,7 +56,7 @@ class RegisterModule extends PLModule FROM register_marketing AS m INNER JOIN accounts AS a ON (m.uid = a.uid) INNER JOIN account_profiles AS ap ON (a.uid = ap.uid AND FIND_IN_SET('owner', ap.perms)) - INNER JOIN profiles AS p ON (p.pid = ap.uid) + INNER JOIN profiles AS p ON (p.pid = ap.pid) INNER JOIN profile_display AS pd ON (p.pid = pd.pid) INNER JOIN profile_name AS pnl ON (p.pid = pnl.pid AND pnl.typeid = {?}) INNER JOIN profile_name AS pnf ON (p.pid = pnf.pid AND pnf.typeid = {?}) @@ -280,7 +280,7 @@ class RegisterModule extends PLModule FROM register_pending AS r INNER JOIN accounts AS a ON (r.uid = a.uid) INNER JOIN account_profiles AS ap ON (a.uid = ap.uid AND FIND_IN_SET('owner', ap.perms)) - INNER JOIN profiles AS p ON (p.pid = ap.uid) + INNER JOIN profiles AS p ON (p.pid = ap.pid) INNER JOIN profile_name AS pnl ON (p.pid = pnl.pid AND pnl.typeid = {?}) INNER JOIN profile_name AS pnf ON (p.pid = pnf.pid AND pnf.typeid = {?}) INNER JOIN profile_display AS pd ON (p.pid = pd.pid)