Url\Params: check for QUERY_STRING before using it

fixes #6957
This commit is contained in:
Thomas Gelf 2014-08-19 14:53:56 +02:00
parent 7035099468
commit f49a34625e
1 changed files with 1 additions and 1 deletions

View File

@ -352,7 +352,7 @@ class UrlParams
public static function fromQueryString($queryString = null)
{
if ($queryString === null) {
$queryString = $_SERVER['QUERY_STRING'];
$queryString = isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '';
}
$params = new static();
$params->parseQueryString($queryString);