Merge branch 'test' into prod
This commit is contained in:
commit
e61e6454dd
@ -96,7 +96,9 @@ class Cron {
|
||||
$extended_loans[] = $loan;
|
||||
}
|
||||
}
|
||||
$this->send_receipt($user, $new_loans, $extended_loans);
|
||||
if($new_loans || $extended_loans) {
|
||||
$this->send_receipt($user, $new_loans, $extended_loans);
|
||||
}
|
||||
$delete = prepare('delete from `pending_receipt`
|
||||
where `user` = ? and `send_time` < ?');
|
||||
bind($delete, 'ii', $user->get_id(), $this->now->getTimestamp());
|
||||
|
Loading…
x
Reference in New Issue
Block a user