]> git.mjollnir.org Git - moodle.git/commitdiff
fix skodak's fix :) Skodak, I recommend you to use Zend Development Environment ...
authorethem <ethem>
Wed, 11 Jun 2008 17:27:58 +0000 (17:27 +0000)
committerethem <ethem>
Wed, 11 Jun 2008 17:27:58 +0000 (17:27 +0000)
enrol/authorize/enrol.php
enrol/authorize/locallib.php

index 4634c91f47368496d8f615c5a6ce82b2f260794a..439105e3c801bcef82e90253f33e4fad3d34690e 100755 (executable)
@@ -738,14 +738,14 @@ class enrolment_plugin_authorize
 
         $timediff60 = $settlementtime - (60 * $oneday);
         $select = "(status=?) AND (timecreated<?)";
-        $params = array(AN_STATUS_EXPIRE, $timediff30);
+        $params = array(AN_STATUS_EXPIRE, $timediff60);
         if ($DB->delete_records_select('enrol_authorize', $select, $params)) {
             mtrace("        orders expired older than 60 days have deleted");
         }
 
         $adminuser = get_admin();
         $select = "status IN(?,?) AND (timecreated<?) AND (timecreated>?)";
-        $params = array(AN_STATUS_UNDERREVIEW, AN_STATUS_APPROVEDREVIEW, $onepass, $timediff30);
+        $params = array(AN_STATUS_UNDERREVIEW, AN_STATUS_APPROVEDREVIEW, $onepass, $timediff60);
         if (($count = $DB->count_records_select('enrol_authorize', $select, $params)) &&
             ($csvusers = get_users_by_capability(get_context_instance(CONTEXT_SYSTEM), 'enrol/authorize:uploadcsv'))) {
             $a = new stdClass;
index ce68a3430b68e408eac13713c0344e33abc47837..f5959944c230683d834eca2c2997f5fb820d750d 100644 (file)
@@ -16,7 +16,7 @@ define('ORDER_VOID',    'void');
 function authorize_print_orders($courseid, $userid)
 {
     global $course;
-    global $CFG, $USER, $SITE;
+    global $CFG, $USER, $SITE, $DB;
     global $strs, $authstrs;
     require_once($CFG->libdir.'/tablelib.php');