diff --git a/src/includes/class/class.LSattribute.php b/src/includes/class/class.LSattribute.php index d629cb0d..e8dcf302 100644 --- a/src/includes/class/class.LSattribute.php +++ b/src/includes/class/class.LSattribute.php @@ -245,7 +245,7 @@ class LSattribute extends LSlog_staticLoggerClass { if($this -> getConfig('required', false, 'bool')) $form -> setRequired($this -> name); - if ( ($form_mode === false) || ($myRights != 'w') ) { + if ( !$form_mode || ($myRights != 'w') ) { self :: log_debug("Attribute ".$this -> name." is freeze in form $idForm."); $element -> freeze(); }