From eba8a2dea56b3fcb144bb74dc0a0776682fc14a1 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 2 Dec 2007 00:10:24 +0000 Subject: Ensure userindex and groupindex is available to non auth.inc callers. --- etc/inc/pfsense-utils.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index fff1d3d..ce2a6d8 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -33,6 +33,12 @@ * */ + +if(!$groupindex) + $groupindex = index_groups(); +if(!$userindex) + $userindex = index_users(); + /****f* pfsense-utils/does_url_exist * NAME * does_url_exist @@ -3883,4 +3889,4 @@ function lookup_gateway_interface_by_name($name) { } } -?> +?> \ No newline at end of file -- cgit v1.1