diff --git a/locallib.php b/locallib.php index d8eb94d..d7a1766 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 > '2011061800') { + if ($module->version <= '2011061800') { print_error("noupgradefromthisversion", 'attendance'); } if (file_exists($CFG->dirroot.'/mod/attforblock')) { diff --git a/version.php b/version.php index bbf9488..50f44ab 100644 --- a/version.php +++ b/version.php @@ -22,7 +22,7 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -$module->version = 2013070401; +$module->version = 2013070402; $module->requires = 2012120300; $module->release = '2.4.1'; $module->maturity = MATURITY_ALPHA;