Skip to content

Commit

Permalink
Fixed: bug in the roles and policies report: roles would be listed do…
Browse files Browse the repository at this point in the history
…uble when not in debug mode
  • Loading branch information
gggeek committed Jan 9, 2018
1 parent 3cb6f25 commit ff87ab0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions classes/reports/ezpoliciesreport.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ public function getDescription()
*/
public static function getRoles()
{
$roles = eZRole::fetchByOffset( 0, false, true, true );
$eZroles = eZRole::fetchByOffset( 0, false, true, true );
$roles = array();

// scrap original array, create a new one where policies are sorted. Can you follow the logic?
foreach( $roles as $role )
foreach( $eZroles as $role )
{
$policies = array();
$users = array();
Expand Down
4 changes: 2 additions & 2 deletions extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<software>
<metadata>
<name>ggsysinfo</name>
<version>0.9.6</version>
<copyright>Copyright (C) 2008-2017 Gaetano Giunta</copyright>
<version>0.9.7</version>
<copyright>Copyright (C) 2008-2018 Gaetano Giunta</copyright>
<license>GNU General Public License v2.0</license>
</metadata>

Expand Down
4 changes: 2 additions & 2 deletions ezinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ class ggsysinfoInfo
static function info()
{
return array( 'Name' => "<a href=\"http://projects.ez.no/ggsysinfo\">ggsysinfo</a>",
'Version' => "0.9.6",
'Copyright' => "Copyright (C) 2008-2017 Gaetano Giunta",
'Version' => "0.9.7",
'Copyright' => "Copyright (C) 2008-2018 Gaetano Giunta",
'License' => "GNU General Public License v2.0"
);
}
Expand Down

0 comments on commit ff87ab0

Please sign in to comment.