From: jamiesensei Date: Mon, 26 May 2008 11:50:51 +0000 (+0000) Subject: MDL-15000 "Moodle url method remove_params doesn't actually remove anything" Fixed. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=db0cc0fce75679b3512e2bbf0ac9eb778f62343f;p=moodle.git MDL-15000 "Moodle url method remove_params doesn't actually remove anything" Fixed. --- diff --git a/lib/weblib.php b/lib/weblib.php index 621f40ace3..7b06ee782a 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -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