diff options
author | robocoder <anthon.pang@gmail.com> | 2012-04-12 19:49:55 +0400 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2012-04-12 19:49:55 +0400 |
commit | 57cbadf4919ed1ba3a4facf564a20a77bab24e03 (patch) | |
tree | b3ad8cab905dcb8b2743f7c950fa6316601879f1 /plugins/SecurityInfo/PhpSecInfo | |
parent | f21fd3eed610ea2c3fcb1c7c31b7fbee6d24dc57 (diff) |
refs #3103 - handle gid without group name; please test patch and provide feedback
git-svn-id: http://dev.piwik.org/svn/trunk@6205 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/SecurityInfo/PhpSecInfo')
-rw-r--r-- | plugins/SecurityInfo/PhpSecInfo/Test/Test.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/SecurityInfo/PhpSecInfo/Test/Test.php b/plugins/SecurityInfo/PhpSecInfo/Test/Test.php index 779447010a..b4902a718c 100644 --- a/plugins/SecurityInfo/PhpSecInfo/Test/Test.php +++ b/plugins/SecurityInfo/PhpSecInfo/Test/Test.php @@ -534,8 +534,11 @@ class PhpSecInfo_Test $gs = $matches[5]; $gs = explode(',', $gs); foreach ($gs as $groupstr) { - preg_match("/(\d+)\(([^\)]+)\)/", $groupstr, $subs); - $groups[$subs[1]] = $subs[2]; + if (preg_match("/(\d+)\(([^\)]+)\)/", $groupstr, $subs)) { + $groups[$subs[1]] = $subs[2]; + } else { + $groups[$groupstr] = ''; + } } ksort($groups); } |