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'];
}
if (!empty($value)) {
//$this -> setValue($value); // pas nécéssaire ??
$this -> updateData=array($value);
if (!is_array($value)) {
$value=array($value);
}
$this -> updateData=$value;
return true;
}
return;