fix variable when move customer to expired plan

This commit is contained in:
Ibnu Maksum
2024-06-23 12:01:08 +07:00
parent 4323e2b879
commit 98e3304f17
6 changed files with 25 additions and 10 deletions

View File

@ -546,6 +546,12 @@ class Package
public static function getDevice($plan)
{
global $DEVICE_PATH;
if($plan === false){
return "none";
}
if(!isset($plan['device'])){
return "none";
}
if (!empty($plan['device'])) {
return $DEVICE_PATH . DIRECTORY_SEPARATOR . $plan['device'] . '.php';
}