MDL-15000 "Moodle url method remove_params doesn't actually remove anything" Fixed.
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user