From db0cc0fce75679b3512e2bbf0ac9eb778f62343f Mon Sep 17 00:00:00 2001 From: jamiesensei Date: Mon, 26 May 2008 11:50:51 +0000 Subject: [PATCH] MDL-15000 "Moodle url method remove_params doesn't actually remove anything" Fixed. --- lib/weblib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index 621f40ace3b..7b06ee782a3 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