Skip to content
Browse files

Use global parameters in authorize_print_orders(): $courseid & $userid

  • Loading branch information...
1 parent 71f7797 commit a37c274b90bbe7b7bc42dbe7ecb32e2a9c1b9534 ethem committed Apr 26, 2006
Showing with 1 addition and 2 deletions.
  1. +1 −2 enrol/authorize/locallib.php
View
3 enrol/authorize/locallib.php
@@ -20,11 +20,10 @@ function authorize_print_orders()
{
global $CFG, $USER;
global $strs, $authstrs;
+ global $courseid, $userid;
require_once $CFG->libdir.'/tablelib.php';
$perpage = 10;
- $userid = optional_param('user', 0, PARAM_INT);
- $courseid = optional_param('course', SITEID, PARAM_INT);
$status = optional_param('status', AN_STATUS_NONE, PARAM_INT);
if (!isteacher($courseid)) {

0 comments on commit a37c274

Please sign in to comment.
Something went wrong with that request. Please try again.