|
@ -1388,7 +1388,7 @@ function att_log_convert_url(moodle_url $fullurl) { |
|
|
function attforblock_upgrade() { |
|
|
function attforblock_upgrade() { |
|
|
global $DB, $CFG; |
|
|
global $DB, $CFG; |
|
|
$module = $DB->get_record('modules', array('name' => 'attforblock')); |
|
|
$module = $DB->get_record('modules', array('name' => 'attforblock')); |
|
|
if ($module->version > '2011061800') { |
|
|
if ($module->version <= '2011061800') { |
|
|
print_error("noupgradefromthisversion", 'attendance'); |
|
|
print_error("noupgradefromthisversion", 'attendance'); |
|
|
} |
|
|
} |
|
|
if (file_exists($CFG->dirroot.'/mod/attforblock')) { |
|
|
if (file_exists($CFG->dirroot.'/mod/attforblock')) { |
|
|