issue 1557, Added codes for unset get_vars

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10254 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2012-02-28 11:17:58 +00:00
parent 27af461e17
commit 4b4806f932

View file

@ -1020,7 +1020,7 @@ class Context {
is_a($this,'Context')?$self=&$this:$self=&Context::getInstance();
$self->context->{$key} = $val;
if($set_to_get_vars === false) return;
if(empty($val))
if($val === NULL || $val === '')
{
unset($self->get_vars->{$key});
return;