mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-23 09:56:34 +02:00
add limit check to size of sms
This commit is contained in:
parent
99349a35c5
commit
11b481aebd
6 changed files with 29 additions and 3 deletions
|
@ -252,7 +252,7 @@ class Quota extends StandardController
|
|||
$renew_interval = $quota['renew_interval'] ?? 'P0D';
|
||||
$new_start_date = new \DateTime($quota['expiration_date']);
|
||||
$new_expiration_date = clone $new_start_date;
|
||||
$new_expiration_date->add(new \DateInterval($quota['renew_interval']));
|
||||
$new_expiration_date->add(new \DateInterval($renew_interval));
|
||||
|
||||
$report = 0;
|
||||
if ($quota['report_unused'] && $unused_credit > 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue