diff --git a/CHANGELOG.md b/CHANGELOG.md index 22af409d..4ad75aae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ # CHANGELOG +## 2023.11.9 + +- fix bug variable in cron +- fix update plan + ## 2023.10.27 - Backup and restore database diff --git a/system/cron.php b/system/cron.php index 869b06e6..98a2d833 100644 --- a/system/cron.php +++ b/system/cron.php @@ -118,7 +118,7 @@ foreach ($d as $ds) { if (empty($p['pool_expired'])) { print_r(Radius::customerDeactivate($c['username'])); } else { - Radius::upsertCustomerAttr($c['username'], 'Framed-Pool', $plan['pool_expired'], ':='); + Radius::upsertCustomerAttr($c['username'], 'Framed-Pool', $p['pool_expired'], ':='); print_r(Radius::disconnectCustomer($c['username'])); } } else { @@ -172,7 +172,7 @@ foreach ($d as $ds) { if (empty($p['pool_expired'])) { print_r(Radius::customerDeactivate($c['username'])); } else { - Radius::upsertCustomerAttr($c['username'], 'Framed-Pool', $plan['pool_expired'], ':='); + Radius::upsertCustomerAttr($c['username'], 'Framed-Pool', $p['pool_expired'], ':='); print_r(Radius::disconnectCustomer($c['username'])); } } else { diff --git a/version.json b/version.json index 32a7c924..4a6d109b 100644 --- a/version.json +++ b/version.json @@ -1,3 +1,3 @@ { - "version": "2023.10.27" + "version": "2023.11.9" } \ No newline at end of file