diff --git a/locallib.php b/locallib.php index 92191ed..d8eb94d 100644 --- a/locallib.php +++ b/locallib.php @@ -1388,7 +1388,7 @@ function att_log_convert_url(moodle_url $fullurl) { function attforblock_upgrade() { global $DB, $CFG; $module = $DB->get_record('modules', array('name' => 'attforblock')); - if ($module->version !== '2012120700') { + if ($module->version > '2011061800') { print_error("noupgradefromthisversion", 'attendance'); } if (file_exists($CFG->dirroot.'/mod/attforblock')) {