Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrobocoder <anthon.pang@gmail.com>2012-04-12 19:49:55 +0400
committerrobocoder <anthon.pang@gmail.com>2012-04-12 19:49:55 +0400
commit57cbadf4919ed1ba3a4facf564a20a77bab24e03 (patch)
treeb3ad8cab905dcb8b2743f7c950fa6316601879f1 /plugins/SecurityInfo/PhpSecInfo
parentf21fd3eed610ea2c3fcb1c7c31b7fbee6d24dc57 (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.php7
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);
}