If a product was checked out and immediately returned, an empty email receipt was being sent. Fixed.
This commit is contained in:
parent
b10bf1eed8
commit
a7d961c4d3
@ -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