mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-15000 "Moodle url method remove_params doesn't actually remove anything" Fixed.
This commit is contained in:
parent
720be6f2c3
commit
db0cc0fce7
@ -358,8 +358,8 @@ class moodle_url {
|
||||
function remove_params(){
|
||||
if ($thisargs = func_get_args()){
|
||||
foreach ($thisargs as $arg){
|
||||
if (isset($this->params->$arg)){
|
||||
unset($this->params->$arg);
|
||||
if (isset($this->params[$arg])){
|
||||
unset($this->params[$arg]);
|
||||
}
|
||||
}
|
||||
} else { // no args
|
||||
|
Loading…
x
Reference in New Issue
Block a user