LSattribute :: isRequired() : Fixed notice PHP
authorBenjamin Renard <brenard@easter-eggs.com>
Tue, 16 Nov 2010 18:45:41 +0000 (19:45 +0100)
committerBenjamin Renard <brenard@easter-eggs.com>
Tue, 16 Nov 2010 18:45:41 +0000 (19:45 +0100)
public_html/includes/class/class.LSattribute.php

index b80241d..7d1583e 100644 (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);
   }
   
   /**