LSattribute :: generateValue() : Fixed bug when generated value is an array.

This commit is contained in:
Benjamin Renard 2010-03-09 17:04:36 +01:00
parent 20b6677210
commit aeb54731ef

View file

@ -482,8 +482,10 @@ class LSattribute {
$value = $this -> config['default_value']; $value = $this -> config['default_value'];
} }
if (!empty($value)) { if (!empty($value)) {
//$this -> setValue($value); // pas nécéssaire ?? if (!is_array($value)) {
$this -> updateData=array($value); $value=array($value);
}
$this -> updateData=$value;
return true; return true;
} }
return; return;