mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
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:
parent
040c36e37f
commit
79aa29f298
@ -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;
|
||||
|
@ -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');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user