diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php index b6b76599c5..f8271f16b7 100755 --- a/usr/local/captiveportal/index.php +++ b/usr/local/captiveportal/index.php @@ -335,7 +335,7 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut $clientip, $clientmac); if ($acct_val == 1) - captiveportal_logportalauth($username,$clientmac,$clientip,$type,"RADIUS ACCOUNTING FAILED"); + captiveportal_logportalauth($username,$clientmac,$clientip,$cpdb[$i][2],"RADIUS ACCOUNTING FAILED"); }