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']); }