Skip to content

Commit

Permalink
correctly get value of all_rulesets
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Feb 5, 2014
1 parent b6019a6 commit c1f911a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ingo/lib/Application.php
Expand Up @@ -206,7 +206,7 @@ public function sidebar($sidebar)
}

if ($injector->getInstance('Ingo_Shares') &&
(count($GLOBALS['all_rulesets']) > 1)) {
(count($all_rulesets = $this->_listRulesets()) > 1)) {
$url = Ingo_Basic_Filters::url();
$current = $GLOBALS['session']->get('ingo', 'current_share');

Expand All @@ -217,7 +217,7 @@ public function sidebar($sidebar)
'collapsed' => false,
),
);
foreach ($GLOBALS['all_rulesets'] as $id => $ruleset) {
foreach ($all_rulesets as $id => $ruleset) {
$row = array(
'selected' => ($current == $id),
'url' => $url->add('ruleset', $id),
Expand Down

0 comments on commit c1f911a

Please sign in to comment.