merged r27137 from Nathan: Need to define a __isset() method so empty() works with __get(). Fixes missing body javascript when looping.

This commit is contained in:
Ralf Becker 2009-05-29 08:14:06 +00:00
parent 03f3303836
commit 7ed3cf4ec2

View File

@ -283,6 +283,18 @@ class etemplate_request
return $this->data[$var];
}
/**
* magic function to see if a request-var has been set
*
* @param string $var
* @return boolean
*/
public function __isset($var)
{
return array_key_exists($var, $this->data);
}
/**
* Get the names / keys of existing variables
*