X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Freminder%2Fpromotion_ml.inc.php;h=7e4276e5808a5096034d0fd95941bd8975ffe8cf;hb=eb41eda94f6b91fbff6600e23a226e994ce1d7ef;hp=ec1b0c5c1dda96a925b75195b639cf48aa55a6ee;hpb=00112b2e8cd1e6e37d06135e6279380f7e2aaa73;p=platal.git diff --git a/include/reminder/promotion_ml.inc.php b/include/reminder/promotion_ml.inc.php index ec1b0c5..7e4276e 100644 --- a/include/reminder/promotion_ml.inc.php +++ b/include/reminder/promotion_ml.inc.php @@ -26,11 +26,11 @@ class ReminderPromotionMl extends Reminder switch ($action) { case 'yes': $res = XDB::query('SELECT id - FROM #groupex#.asso + FROM groups WHERE diminutif = {?}', S::v('promo')); $asso_id = $res->fetchOneCell(); - XDB::execute('REPLACE INTO #groupex#.membres (uid, asso_id) + XDB::execute('REPLACE INTO group_members (uid, asso_id) VALUES ({?}, {?})', S::v('uid'), $asso_id); $mmlist = new MMList(S::v('uid'), S::v('password')); @@ -67,9 +67,9 @@ class ReminderPromotionMl extends Reminder // We only test if the user is in her promotion group for it is too // expensive to check if she is in the corresponding ML as well. $res = XDB::query('SELECT COUNT(*) - FROM #groupex#.membres + FROM group_members WHERE uid = {?} AND asso_id = (SELECT id - FROM #groupex#.asso + FROM groups WHERE diminutif = {?})', $user->id(), S::v('promo'));