Skip to content

Commit

Permalink
fix nas add
Browse files Browse the repository at this point in the history
  • Loading branch information
ibnux committed Jul 10, 2024
1 parent c316015 commit d042879
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions system/controllers/radius.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@
}
if ($msg == '') {
require_once $DEVICE_PATH . DIRECTORY_SEPARATOR . "Radius.php";
(new Radius())->nasAdd($shortname, $nasname, $ports, $secret, $routers, $description, $type, $server, $community);
if ($id > 0) {
if ((new Radius())->nasAdd($shortname, $nasname, $ports, $secret, $routers, $description, $type, $server, $community) > 0) {
r2(U . 'radius/nas-list/', 's', "NAS Added");
} else {
r2(U . 'radius/nas-add/', 'e', "NAS Added Failed");
Expand Down

0 comments on commit d042879

Please sign in to comment.