Permalink
Browse files

"MDL-21122, fixed saving setting problem in section links block"

  • Loading branch information...
dcai committed Dec 18, 2009
1 parent 1343e53 commit baf1dc0a4de9153654d1c25e67e4b53111e03e47
Showing with 3 additions and 3 deletions.
  1. +1 −1 blocks/section_links/block_section_links.php
  2. +2 −2 blocks/section_links/config_instance.html
@@ -75,7 +75,7 @@ function get_content() {
}
if(!empty($config->numsections2) and ($course->numsections > $config->numsections2)) {
- $inc = $config->incby1;
+ $inc = $config->incby2;
} else {
if ($course->numsections > 40) {
$inc = 5;
@@ -18,7 +18,7 @@
$selected = array();
if (!empty($config->numsections1)) {
- if (!empty($config->incby1)) {
+ if (empty($config->incby1)) {
$config->incby1 = 2;
}
$selected[1] = array($config->numsections1, $config->incby1);
@@ -27,7 +27,7 @@
}
if (!empty($config->numsections2)) {
- if (!empty($config->incby1)) {
+ if (empty($config->incby1)) {
$config->incby1 = 5;
}
$selected[2] = array($config->numsections2, $config->incby2);

0 comments on commit baf1dc0

Please sign in to comment.