2
0
Эх сурвалжийг харах

fixed getParamsString() returning "null" instead of ""

Nicolas Cannasse 15 жил өмнө
parent
commit
6f8649920e
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      std/neko/Web.hx

+ 2 - 1
std/neko/Web.hx

@@ -144,7 +144,8 @@ class Web {
 		Returns all the GET parameters String
 	**/
 	public static function getParamsString() {
-		return new String(_get_params_string());
+		var p = _get_params_string();
+		return if( p == null ) "" else new String(p);
 	}
 
 	/**