From d21c1bb13875189ab25f7bce4f05cc3fedaa4904 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Thu, 25 Oct 2012 15:42:06 +0200 Subject: correction marquage des articles en js --- lib/Request.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/Request.php b/lib/Request.php index 75e2d33f8..4f06be1d8 100644 --- a/lib/Request.php +++ b/lib/Request.php @@ -59,8 +59,12 @@ class Request { self::$params = $params; } - public static function _param ($key, $value) { - self::$params[$key] = $value; + public static function _param ($key, $value = null) { + if (is_null ($value)) { + unset (self::$params[$key]); + } else { + self::$params[$key] = $value; + } } /** -- cgit v1.2.3