X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fprofile%2Fdecos.inc.php;h=7a88b6114c2fd9c14693d8f77be1141563930d3e;hb=ce0b2c6f3fc4e7c524df32f56f1bc8e8d573bb1a;hp=9d4634787c21ff7d35a40cb6bc06e0cd152f357c;hpb=524d1205c09d3f8e14a5751b2cbbce7e2fd23008;p=platal.git diff --git a/modules/profile/decos.inc.php b/modules/profile/decos.inc.php index 9d46347..7a88b61 100644 --- a/modules/profile/decos.inc.php +++ b/modules/profile/decos.inc.php @@ -1,6 +1,6 @@ pid()); $value = array(); @@ -61,7 +61,7 @@ class ProfileDeco implements ProfileSetting foreach ($orig as $id=>&$val) { if (!isset($value[$id]) || $val['grade'] != $value[$id]['grade']) { if ($val['valid']) { - XDB::execute("DELETE FROM profile_medals_sub + XDB::execute("DELETE FROM profile_medals WHERE uid = {?} AND mid = {?}", $page->pid(), $id); } else { @@ -118,7 +118,7 @@ class ProfileDecos extends ProfilePage public function _prepare(PlPage &$page, $id) { $res = XDB::iterator("SELECT *, FIND_IN_SET('validation', flags) AS validate - FROM profile_medals + FROM profile_medal_enum ORDER BY type, text"); $mlist = array(); while ($tmp = $res->next()) {