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

This commit is contained in:
Nathan Gray 2009-05-27 14:57:29 +00:00
parent bbee5b34bb
commit f124b889d8

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
*
@ -379,4 +391,4 @@ class etemplate_request
self::$mcrypt = null;
}
}
}
}