From 2653f75032d789090ae9a3228de24b10fda3d635 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 12 Dec 2006 17:31:34 +0000 Subject: Log an error to system logs when $type is not set. --- usr/local/captiveportal/index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php index 71bf804..2f6970f 100755 --- a/usr/local/captiveportal/index.php +++ b/usr/local/captiveportal/index.php @@ -334,6 +334,10 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut $radiusservers[0]['key'], $clientip, $clientmac); + + if(!type) + log_error("WARNING: \$type has not been set in captiveportal/index.php"); + if ($acct_val == 1) captiveportal_logportalauth($username,$clientmac,$clientip,$type,"RADIUS ACCOUNTING FAILED"); } -- cgit v1.1