Do not use blank variable $type. Use the same variable $cpdb[$i][2] that is being used in the other calls.

This commit is contained in:
Scott Ullrich 2006-12-11 17:15:31 +00:00
parent 84e5047da7
commit bba1c4ec79

View File

@ -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");
}