fix variable forsendPackageNotification

This commit is contained in:
Ibnu Maksum 2024-04-23 15:34:40 +07:00
parent 9712d411f5
commit 4c1e5da601
No known key found for this signature in database
GPG key ID: 7FC82848810579E5

View file

@ -121,7 +121,7 @@ class Message
public static function sendPackageNotification($customer, $package, $price, $message, $via)
{
global $user_recharge;
global $ds;
if(empty($message)){
return "";
}
@ -141,8 +141,8 @@ class Message
}else{
$msg = str_replace('[[bills]]', '', $msg);
}
if ($user_recharge) {
$msg = str_replace('[[expired_date]]', Lang::dateAndTimeFormat($user_recharge['expiration'], $user_recharge['time']), $msg);
if ($ds) {
$msg = str_replace('[[expired_date]]', Lang::dateAndTimeFormat($ds['expiration'], $ds['time']), $msg);
}else{
$msg = str_replace('[[expired_date]]', "", $msg);
}