* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
// Updates (or creates) the reminder line for the pair (|user|, |reminder_id|)
// using the |status| as status, and the |next_ask| as the delay between now
// and the next ask (if any).
// Updates (or creates) the reminder line for the pair (|user|, |reminder_id|)
// using the |status| as status, and the |next_ask| as the delay between now
// and the next ask (if any).
- private static function UpdateStatus($user_id, $type_id, $status, $next_ask)
+ private static function UpdateStatus($uid, $type_id, $status, $next_ask)
{
XDB::execute('REPLACE INTO reminder
SET uid = {?}, type_id = {?}, status = {?},
remind_last = NOW(), remind_next = FROM_UNIXTIME({?})',
{
XDB::execute('REPLACE INTO reminder
SET uid = {?}, type_id = {?}, status = {?},
remind_last = NOW(), remind_next = FROM_UNIXTIME({?})',
- $user_id, $type_id, $status,
+ $uid, $type_id, $status,
// It is intended to be used when a reminder box has been bypassed, and when
// it should behave as if the user had clicked on 'yes'.
// It is intended to be used when a reminder box has been bypassed, and when
// it should behave as if the user had clicked on 'yes'.