From 22ffe58b2470601de769c93ea7900204e6abd885 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Tue, 9 Jul 2013 08:46:58 +1200 Subject: [PATCH] Fix previous version check - whoops. --- locallib.php | 2 +- version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;