X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Freminder%2Fpromotion_ml.inc.php;h=ec1b0c5c1dda96a925b75195b639cf48aa55a6ee;hb=5660032ac785d410f90e3f5b0d6948dc90b0cfea;hp=b67b59b6a3dd1633733a3d2488b6b16a5248c461;hpb=2d4a96e143b6964825edebed8782e558bd8a02bf;p=platal.git diff --git a/include/reminder/promotion_ml.inc.php b/include/reminder/promotion_ml.inc.php index b67b59b..ec1b0c5 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 #groupex#.asso WHERE diminutif = {?}', S::v('promo')); $asso_id = $res->fetchOneCell(); - XDB::execute('REPLACE INTO groupex.membres (uid, asso_id) + XDB::execute('REPLACE INTO #groupex#.membres (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 #groupex#.membres WHERE uid = {?} AND asso_id = (SELECT id - FROM groupex.asso + FROM #groupex#.asso WHERE diminutif = {?})', $user->id(), S::v('promo'));