new $p['device'] to (new $p['device'])

This commit is contained in:
Ibnu Maksum
2024-06-05 17:37:01 +07:00
parent 0c8f590f85
commit c661976eae
7 changed files with 31 additions and 31 deletions

View File

@ -46,7 +46,7 @@ switch ($action) {
$dvc = Package::getDevice($p);
if (file_exists($dvc)) {
require_once $dvc;
new $p['device']->remove_customer($c, $p);
(new $p['device'])->remove_customer($c, $p);
} else {
new Exception(Lang::T("Devices Not Found"));
}