--- enrol/imsenterprise/enrol.php.orig 2009-05-26 21:16:15.000000000 +0900 +++ enrol/imsenterprise/enrol.php 2009-05-26 22:38:21.000000000 +0900 @@ -263,6 +263,12 @@ $fileisnew = true; // Let's process it! } + // These variables are stored so we can compare them against the IMS file, next time round. + set_config('enrol_ims_prev_time', $filemtime); + set_config('enrol_ims_prev_md5', $md5); + set_config('enrol_ims_prev_path', $filename); + + if($fileisnew){ $listoftags = array('group', 'person', 'member', 'membership', 'comments', 'properties'); // The list of tags which should trigger action (even if only cache trimming) @@ -353,12 +359,6 @@ } // END of "if file is new" - // These variables are stored so we can compare them against the IMS file, next time round. - set_config('enrol_ims_prev_time', $filemtime); - set_config('enrol_ims_prev_md5', $md5); - set_config('enrol_ims_prev_path', $filename); - - }else{ // end of if(file_exists) $this->log_line('File not found: '.$filename);