mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-24 15:48:55 +01:00
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:
parent
03f3303836
commit
7ed3cf4ec2
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user