From a8fa4e5ac6672a0d4ba1e7a52ef884e917627979 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Mon, 26 Oct 2015 15:55:42 +0100 Subject: [PATCH] (auth/radius) missing define, style cleanups --- src/opnsense/mvc/app/library/OPNsense/Auth/Radius.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/opnsense/mvc/app/library/OPNsense/Auth/Radius.php b/src/opnsense/mvc/app/library/OPNsense/Auth/Radius.php index f78f8c55e..58f0a361c 100644 --- a/src/opnsense/mvc/app/library/OPNsense/Auth/Radius.php +++ b/src/opnsense/mvc/app/library/OPNsense/Auth/Radius.php @@ -29,8 +29,6 @@ namespace OPNsense\Auth; -use OPNsense\Core\Config; - /** * Class Radius connector * @package OPNsense\Auth @@ -117,8 +115,8 @@ class Radius implements IAuthConnector /** * send start accounting message to radius - * @param $username username - * @param $sessionid session id to pass through + * @param string $username username + * @param string $sessionid session id to pass through */ public function startAccounting($username, $sessionid) { @@ -249,6 +247,9 @@ class Radius implements IAuthConnector public function updateAccounting($username, $sessionid, $session_time) { $radius = radius_auth_open(); + if (!defined('RADIUS_UPDATE')) { + define('RADIUS_UPDATE', 3); + } $error = null; if (!radius_add_server(