Prevent errors

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9854 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-11-22 08:54:29 +00:00
parent 04a8e38201
commit a9ee03e512

View file

@ -1059,7 +1059,8 @@ class Context {
**/
function getRequestVars() {
is_a($this,'Context')?$self=&$this:$self=&Context::getInstance();
return clone($self->get_vars);
if($self->get_vars) return clone($self->get_vars);
return new stdClass;
}
/**