X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fprofile%2Fskills.inc.php;h=668cbb32791cbf6aaa32924191df92baaa3f766b;hb=89cb2025f5f2aed0be3994c89ac473aa11535853;hp=16ce3796106d5bbf5f1c5d3d99263a141249c72f;hpb=59bec5bc5512a4f962ebac7b0346f59cdf56f901;p=platal.git diff --git a/modules/profile/skills.inc.php b/modules/profile/skills.inc.php index 16ce379..668cbb3 100644 --- a/modules/profile/skills.inc.php +++ b/modules/profile/skills.inc.php @@ -40,7 +40,7 @@ class ProfileSkill implements ProfileSetting FROM {$this->table}_def AS s INNER JOIN {$this->table}_ins AS i ON(s.id = i.{$this->skill_field}) WHERE i.uid = {?}", - S::i('uid')); + $page->pid()); while (list($sid, $text, $level) = $res->next()) { $value[$sid] = array('text' => $text, 'level' => $level); } @@ -66,14 +66,14 @@ class ProfileSkill implements ProfileSetting { XDB::execute("DELETE FROM {$this->table}_ins WHERE uid = {?}", - S::i('uid')); + $page->pid()); if (!count($value)) { return; } foreach ($value as $id=>&$skill) { XDB::execute("INSERT INTO {$this->table}_ins (uid, {$this->skill_field}, level) VALUES ({?}, {?}, {?})", - S::i('uid'), $id, $skill['level']); + $page->pid(), $id, $skill['level']); } } }