Skip to content

Commit

Permalink
Merge branch 'MDL-37459-master-fix' of https://github.com/damyon/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaglancy committed Jun 11, 2013
2 parents 11ea436 + 19127f6 commit 849a016
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions course/moodleform_mod.php
Original file line number Diff line number Diff line change
Expand Up @@ -890,8 +890,8 @@ function apply_admin_defaults($datetimeoffsets = array()) {
if ($mform->elementExists($name)) {
$element = $mform->getElement($name);
if ($element->getType() == 'date_time_selector') {
$enabledsetting = $name . '_enabled';
                    if (empty($settings->$enabledsetting)) {
$enabledsetting = $name . '_enabled';
if (empty($settings->$enabledsetting)) {
$mform->setDefault($name, 0);
} else {
$relativetime = $usermidnight;
Expand Down

0 comments on commit 849a016

Please sign in to comment.