LSattribute :: isRequired() : Fixed notice PHP

This commit is contained in:
Benjamin Renard 2010-11-16 19:45:41 +01:00
parent 3df9edb25f
commit ef40b5825c

View file

@ -451,7 +451,7 @@ class LSattribute {
* @retval boolean true si l'attribut est obligatoire, false sinon
*/
function isRequired() {
return $this -> config['required'];
return (isset($this -> config['required'])?(bool)$this -> config['required']:false);
}
/**