mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
removed isset_param()
This commit is contained in:
parent
23ca8954be
commit
fac01360b3
@ -654,7 +654,7 @@ function calendar_filter_controls($type, $vars = NULL, $course = NULL) {
|
||||
$getvars = '&from='.$type;
|
||||
break;
|
||||
case 'course':
|
||||
if (isset_param('id')) {
|
||||
if ($id > 0) {
|
||||
$getvars = '&from=course&id='.$id;
|
||||
} else {
|
||||
$getvars = '&from=course';
|
||||
|
@ -8,7 +8,7 @@
|
||||
$f = optional_param('f', 0, PARAM_INT); // Forum ID
|
||||
$mode = optional_param('mode', 0, PARAM_INT); // Display mode (for single forum)
|
||||
$showall = optional_param('showall', '', PARAM_INT); // show all discussions on one page
|
||||
$group = optional_param('group', -1, PARAM_INT); // choose the current group
|
||||
$changegroup = optional_param('group', -1, PARAM_INT); // choose the current group
|
||||
$page = optional_param('page', 0, PARAM_INT); // which page to show
|
||||
$search = optional_param('search', ''); // search string
|
||||
|
||||
@ -83,8 +83,6 @@
|
||||
/// Check to see if groups are being used in this forum
|
||||
/// and if so, set $currentgroup to reflect the current group
|
||||
|
||||
$changegroup = isset_param('group') ? $group : -1; // Group change requested?
|
||||
|
||||
if ($forum->type == "teacher") {
|
||||
$groupmode = NOGROUPS;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user