Issue 1562 fixed a warning in Context class

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10277 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2012-03-02 00:13:30 +00:00
parent debe44afdc
commit 07aba2b16c

View file

@ -781,9 +781,13 @@ class Context {
static $url = null; static $url = null;
if(is_null($url)) { if(is_null($url)) {
$url = Context::getRequestUri(); $url = Context::getRequestUri();
if(count($_GET)) { if(count($_GET))
foreach($_GET as $key => $val) $vars[] = $key.'='.urlencode(Context::convertEncodingStr($val)); {
$url .= '?'.implode('&',$vars); foreach($_GET as $key => $val)
{
$vars[] = $key . '=' . ($val ? urlencode(Context::convertEncodingStr($val)) : '');
}
$url .= '?' . join('&', $vars);
} }
} }
return $url; return $url;
@ -1458,4 +1462,3 @@ class Context {
$map[$key] = $content; $map[$key] = $content;
} }
} }
?>