]> git.mjollnir.org Git - moodle.git/commitdiff
fix remove_params
authortjhunt <tjhunt>
Wed, 6 May 2009 08:51:23 +0000 (08:51 +0000)
committertjhunt <tjhunt>
Wed, 6 May 2009 08:51:23 +0000 (08:51 +0000)
lib/weblib.php

index 571bc2d3510eeb2f63ee49273a58aedd09460045..a2ec5509fb1075b770494245eae2e4b077a42c6f 100644 (file)
@@ -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;