mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-29 14:28:13 +02:00
fix variable forsendPackageNotification
This commit is contained in:
parent
9712d411f5
commit
4c1e5da601
1 changed files with 3 additions and 3 deletions
|
@ -121,7 +121,7 @@ class Message
|
||||||
|
|
||||||
public static function sendPackageNotification($customer, $package, $price, $message, $via)
|
public static function sendPackageNotification($customer, $package, $price, $message, $via)
|
||||||
{
|
{
|
||||||
global $user_recharge;
|
global $ds;
|
||||||
if(empty($message)){
|
if(empty($message)){
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
@ -141,8 +141,8 @@ class Message
|
||||||
}else{
|
}else{
|
||||||
$msg = str_replace('[[bills]]', '', $msg);
|
$msg = str_replace('[[bills]]', '', $msg);
|
||||||
}
|
}
|
||||||
if ($user_recharge) {
|
if ($ds) {
|
||||||
$msg = str_replace('[[expired_date]]', Lang::dateAndTimeFormat($user_recharge['expiration'], $user_recharge['time']), $msg);
|
$msg = str_replace('[[expired_date]]', Lang::dateAndTimeFormat($ds['expiration'], $ds['time']), $msg);
|
||||||
}else{
|
}else{
|
||||||
$msg = str_replace('[[expired_date]]', "", $msg);
|
$msg = str_replace('[[expired_date]]', "", $msg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue