Browse Source

php : fixed issue 307

Franco Ponticelli 14 years ago
parent
commit
cea8b07a8b
1 changed files with 5 additions and 2 deletions
  1. 5 2
      std/php/Web.hx

+ 5 - 2
std/php/Web.hx

@@ -198,8 +198,11 @@ class Web {
 	/**
 		Returns all the GET parameters String
 	**/
-	public static inline function getParamsString() : String {
-		return untyped __php__("$_SERVER['QUERY_STRING']");
+	public static function getParamsString() : String {
+		if(untyped __call__("isset", __var__("_SERVER", "QUERY_STRING")))
+			return untyped __var__("_SERVER", "QUERY_STRING");
+		else
+			return "";
 	}
 
 	/**