From afc183ec32e8b51653e6d4f4f46118a93568421a Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sat, 6 Mar 2010 16:32:53 +0100 Subject: [PATCH] Fix some uid -> pid. Signed-off-by: Florent Bruneau --- modules/profile/skills.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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']); } -- 2.1.4