From f9acc51bb7767638fe6e5e1d76273c2d717b2ec0 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Sun, 22 Apr 2018 18:59:17 +0200 Subject: [PATCH] CaptivePortal, fix typo, when calling stopAccounting() check if stopAccounting() exists and not startAccounting() (although both are true ;) ) --- .../OPNsense/CaptivePortal/process_accounting_messages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opnsense/scripts/OPNsense/CaptivePortal/process_accounting_messages.php b/src/opnsense/scripts/OPNsense/CaptivePortal/process_accounting_messages.php index c8dfbc5a5..50ec37cf8 100755 --- a/src/opnsense/scripts/OPNsense/CaptivePortal/process_accounting_messages.php +++ b/src/opnsense/scripts/OPNsense/CaptivePortal/process_accounting_messages.php @@ -81,7 +81,7 @@ if ($result !== false) { $stmt->bindParam(':zoneid', $row['zoneid']); $stmt->bindParam(':sessionid', $row['sessionid']); $stmt->execute(); - if (method_exists($authenticator, 'startAccounting')) { + if (method_exists($authenticator, 'stopAccounting')) { $time_spend = time() - $row['created']; $authenticator->stopAccounting($row['username'], $row['sessionid'], $time_spend, $row['bytes_in'], $row['bytes_out'], $row['ip_address']); }