mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-04 10:15:03 +02:00
new $p['device'] to (new $p['device'])
This commit is contained in:
parent
0c8f590f85
commit
c661976eae
7 changed files with 31 additions and 31 deletions
|
@ -35,7 +35,7 @@ foreach ($d as $ds) {
|
|||
$dvc = Package::getDevice($p);
|
||||
if (file_exists($dvc)) {
|
||||
require_once $dvc;
|
||||
new $p['device']->remove_customer($ds['routers'], $c, $p);
|
||||
(new $p['device'])->remove_customer($ds['routers'], $c, $p);
|
||||
} else {
|
||||
echo "Cron error Devices $p[device] not found, cannot disconnect $c[username]";
|
||||
Message::sendTelegram("Cron error Devices $p[device] not found, cannot disconnect $c[username]");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue