summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal/radius_accounting.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-03-21 16:29:07 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-03-21 16:29:07 +0000
commit637345f3d9fb5c880f681d26d53165171d683938 (patch)
treea96e437b8df1b7d1c63c17ecf4ce1821a4a196b1 /usr/local/captiveportal/radius_accounting.inc
parent5918fbaf3192409289f7f4cba030ff9c817ddc62 (diff)
downloadpfsense-637345f3d9fb5c880f681d26d53165171d683938.zip
pfsense-637345f3d9fb5c880f681d26d53165171d683938.tar.gz
Silence eclipse errors
Diffstat (limited to 'usr/local/captiveportal/radius_accounting.inc')
-rw-r--r--usr/local/captiveportal/radius_accounting.inc9
1 files changed, 3 insertions, 6 deletions
diff --git a/usr/local/captiveportal/radius_accounting.inc b/usr/local/captiveportal/radius_accounting.inc
index 50dfa20..64ae05d 100644
--- a/usr/local/captiveportal/radius_accounting.inc
+++ b/usr/local/captiveportal/radius_accounting.inc
@@ -249,16 +249,13 @@ function RADIUS_ACCOUNTING_STOP($ruleno,$username,$sessionid,$start_time,$radius
if (PEAR::isError($result)) {
$retvalue['acct_val'] = 1;
$retvalue['error'] = $result->getMessage();
- if ($debug)
- printf("Radius send failed: %s<br>\n", $retvalue['error']);
+
} else if ($result === true) {
$retvalue['acct_val'] = 5 ;
- if ($debug)
- printf("Radius Accounting succeeded<br>\n");
+
} else {
$retvalue['acct_val'] = 1 ;
- if ($debug)
- printf("Radius Accounting rejected<br>\n");
+
}
// close OO RADIUS_ACCOUNTING
OpenPOWER on IntegriCloud