diff options
author | Ermal <eri@pfsense.org> | 2010-08-17 20:44:10 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-08-17 20:44:10 +0000 |
commit | cbe495170a4d6409cb48ad69386805bda6f3a5bc (patch) | |
tree | 3f1e1fa8c5806a0344157e1e753e456f04f33d2a | |
parent | 51d5aad75a0a88034b49db3d867e8a1e49fe2f12 (diff) | |
download | pfsense-cbe495170a4d6409cb48ad69386805bda6f3a5bc.zip pfsense-cbe495170a4d6409cb48ad69386805bda6f3a5bc.tar.gz |
Avoid a warning on this code when there is no member for a group.
-rw-r--r-- | etc/inc/auth.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index 4bca766..9b7db69 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -489,7 +489,7 @@ function local_group_set($group, $reset = false) { $group_name = $group['name']; $group_gid = $group['gid']; $group_members = "''"; - if (!$reset && count($group['member'])) + if (!$reset && !empty($group['member']) && count($group['member']) > 0) $group_members = implode(",",$group['member']); /* read from group db */ @@ -1242,4 +1242,4 @@ function session_auth() { return true; } -?>
\ No newline at end of file +?> |