mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 01:43:47 +01:00
Need to define a __isset() method so empty() works with __get(). Fixes missing body javascript when looping.
This commit is contained in:
parent
bbee5b34bb
commit
f124b889d8
@ -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
|
||||
*
|
||||
@ -379,4 +391,4 @@ class etemplate_request
|
||||
self::$mcrypt = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user