From: tjhunt Date: Wed, 6 May 2009 08:51:23 +0000 (+0000) Subject: fix remove_params X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=49127522149f02c6189aacb8c914edc207e9c864;p=moodle.git fix remove_params --- diff --git a/lib/weblib.php b/lib/weblib.php index 571bc2d351..a2ec5509fb 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -308,7 +308,7 @@ class moodle_url { * @param mixed $params either an array of param names, or a string param name, * @param string $params,... any number of additional param names. */ - public function remove_params($params) { + public function remove_params($params = NULL) { if (empty($params)) { $this->params = array(); return;