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

This commit is contained in:
ethem 2008-06-11 17:27:58 +00:00
parent 040c36e37f
commit 79aa29f298
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View 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');