Skip to content

Commit

Permalink
MDL-15876: Fixed error with defaults in config_multicheckbox
Browse files Browse the repository at this point in the history
  • Loading branch information
sam_marshall committed Jul 29, 2008
1 parent 07e853e commit 384500c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/adminlib.php
Expand Up @@ -2215,9 +2215,9 @@ function output_html($data, $query='') {
$default = array();
}
if (is_null($data)) {
foreach ($default as $key=>$value) {
foreach ($default as $value) {
if ($value) {
$current[] = $value;
$data[] = $value;
}
}
}
Expand All @@ -2230,7 +2230,7 @@ function output_html($data, $query='') {
} else {
$checked = '';
}
if (!empty($default[$key])) {
if (in_array($key,$default)) {
$defaults[] = $description;
}

Expand Down

0 comments on commit 384500c

Please sign in to comment.