From 79aa29f2982bf47952eeae576f1cb59925d91242 Mon Sep 17 00:00:00 2001 From: ethem Date: Wed, 11 Jun 2008 17:27:58 +0000 Subject: [PATCH] fix skodak's fix :) Skodak, I recommend you to use Zend Development Environment (ZDE)... Tools -> Analyze Code shows bugs & unused variables & what ever you want :D --- enrol/authorize/enrol.php | 4 ++-- enrol/authorize/locallib.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/enrol/authorize/enrol.php b/enrol/authorize/enrol.php index 4634c91f473..439105e3c80 100755 --- a/enrol/authorize/enrol.php +++ b/enrol/authorize/enrol.php @@ -738,14 +738,14 @@ class enrolment_plugin_authorize $timediff60 = $settlementtime - (60 * $oneday); $select = "(status=?) AND (timecreateddelete_records_select('enrol_authorize', $select, $params)) { mtrace(" orders expired older than 60 days have deleted"); } $adminuser = get_admin(); $select = "status IN(?,?) 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; diff --git a/enrol/authorize/locallib.php b/enrol/authorize/locallib.php index ce68a3430b6..f5959944c23 100644 --- a/enrol/authorize/locallib.php +++ b/enrol/authorize/locallib.php @@ -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');