summaryrefslogtreecommitdiffstats
path: root/etc/inc/auth.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-09-08 17:04:45 +0000
committerErmal <eri@pfsense.org>2010-09-08 17:04:45 +0000
commit6dcd80af70f34396861e7ee02732bed518945d8e (patch)
tree9ba19a97deddcd75e510bb20c73f9d89fef52a8d /etc/inc/auth.inc
parent41fb483ad8ebb9aa57a827d2c37d47ce096442f4 (diff)
downloadpfsense-6dcd80af70f34396861e7ee02732bed518945d8e.zip
pfsense-6dcd80af70f34396861e7ee02732bed518945d8e.tar.gz
Check for proper type.
Diffstat (limited to 'etc/inc/auth.inc')
-rw-r--r--etc/inc/auth.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index 9b7db69..f5c84d8 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -94,7 +94,7 @@ function index_groups() {
$groupindex = array();
- if (isset($config['system']['group'])) {
+ if (is_array($config['system']['group'])) {
$i = 0;
foreach($config['system']['group'] as $groupent) {
$groupindex[$groupent['name']] = $i;
@@ -108,7 +108,7 @@ function index_groups() {
function index_users() {
global $g, $debug, $config;
- if (isset($config['system']['user'])) {
+ if (is_array($config['system']['user'])) {
$i = 0;
foreach($config['system']['user'] as $userent) {
$userindex[$userent['name']] = $i;
OpenPOWER on IntegriCloud