MDL-15000 "Moodle url method remove_params doesn't actually remove anything" Fixed.

This commit is contained in:
jamiesensei 2008-05-26 11:50:51 +00:00
parent 720be6f2c3
commit db0cc0fce7

View File

@ -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