Skip to content

Commit

Permalink
Merge branch 'patch-2' of https://github.com/sk-unikent/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Apr 21, 2015
2 parents df9981c + bf5eebe commit d0704fd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions blocks/settings/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ public function settings_tree(settings_navigation $navigation) {
$count = 0;
foreach ($navigation->children as &$child) {
$child->preceedwithhr = ($count!==0);
$count++;
if ($child->display) {
$count++;
}
}
$content = $this->navigation_node($navigation, array('class'=>'block_tree list'));
if (isset($navigation->id) && !is_numeric($navigation->id) && !empty($content)) {
Expand Down Expand Up @@ -116,4 +118,4 @@ public function search_form(moodle_url $formtarget, $searchvalue) {
return $content;
}

}
}

0 comments on commit d0704fd

Please sign in to comment.