From: Florent Bruneau Date: Sat, 6 Mar 2010 15:32:53 +0000 (+0100) Subject: Fix some uid -> pid. X-Git-Tag: xorg/1.0.0~332^2~99 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=afc183ec32e8b51653e6d4f4f46118a93568421a;p=platal.git Fix some uid -> pid. Signed-off-by: Florent Bruneau --- diff --git a/modules/profile/skills.inc.php b/modules/profile/skills.inc.php index ad4bef5..23d5d41 100644 --- a/modules/profile/skills.inc.php +++ b/modules/profile/skills.inc.php @@ -39,7 +39,7 @@ class ProfileSkill implements ProfileSetting $res = XDB::iterRow("SELECT s.id, s.{$this->text_field}, i.level FROM profile_{$this->table}_enum AS s INNER JOIN profile_{$this->table}s AS i ON(s.id = i.{$this->skill_field}) - WHERE i.uid = {?}", + WHERE i.pid = {?}", $page->pid()); while (list($sid, $text, $level) = $res->next()) { $value[$sid] = array('text' => $text, 'level' => $level); @@ -71,7 +71,7 @@ class ProfileSkill implements ProfileSetting return; } foreach ($value as $id=>&$skill) { - XDB::execute("INSERT INTO profile_{$this->table}s (uid, {$this->skill_field}, level) + XDB::execute("INSERT INTO profile_{$this->table}s (pid, {$this->skill_field}, level) VALUES ({?}, {?}, {?})", $page->pid(), $id, $skill['level']); }