From bba1c4ec796524cc34648b2eb0ce42591d3c8042 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 11 Dec 2006 17:15:31 +0000 Subject: [PATCH] Do not use blank variable $type. Use the same variable $cpdb[$i][2] that is being used in the other calls. --- usr/local/captiveportal/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); }