diff --git a/system/autoload/Radius.php b/system/autoload/Radius.php
index 9ec99f5..a445b21 100644
--- a/system/autoload/Radius.php
+++ b/system/autoload/Radius.php
@@ -92,7 +92,7 @@ class Radius
{
$rates = explode('/', $rate);
##burst fixed
- if (str_contains($rate, ' ')) {
+ if (strpos($rate, ' ')) {
$ratos = $rates[0].'/'.$rates[1].' '.$rates[2].'/'.$rates[3].'/'.$rates[4].'/'.$rates[5].'/'.$rates[6];
} else {
$ratos = $rates[0].'/'.$rates[1];
diff --git a/system/controllers/services.php b/system/controllers/services.php
index 574b144..dadfb0c 100644
--- a/system/controllers/services.php
+++ b/system/controllers/services.php
@@ -38,7 +38,7 @@ switch ($action) {
} else {
$radup = '000000';
}
- $radiusRate = $plan['rate_up'] . $radup . '/' . $plan['rate_down'] . $raddown . '/' . $b['burst'];
+ $radiusRate = $plan['rate_up'] . $radup . '/' . $plan['rate_down'] . $raddown . '/' . $plan['burst'];
Radius::planUpSert($plan['id'], $radiusRate);
$log .= "DONE : Radius $plan[name_plan], $plan[shared_users], $radiusRate
";
} else {
@@ -83,7 +83,7 @@ switch ($action) {
} else {
$radup = '000000';
}
- $radiusRate = $plan['rate_up'] . $radup . '/' . $plan['rate_down'] . $raddown . '/' . $b['burst'];
+ $radiusRate = $plan['rate_up'] . $radup . '/' . $plan['rate_down'] . $raddown . '/' . $plan['burst'];
Radius::planUpSert($plan['id'], $radiusRate, $plan['pool']);
$log .= "DONE : RADIUS $plan[name_plan], $plan[pool], $rate
";
} else {
diff --git a/ui/ui/hotspot-edit.tpl b/ui/ui/hotspot-edit.tpl
index 4ce93f3..acd2d00 100644
--- a/ui/ui/hotspot-edit.tpl
+++ b/ui/ui/hotspot-edit.tpl
@@ -59,7 +59,7 @@