From aeb54731ef5a01dfc3672eb598b9a6c61b611888 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 9 Mar 2010 17:04:36 +0100 Subject: [PATCH] LSattribute :: generateValue() : Fixed bug when generated value is an array. --- public_html/includes/class/class.LSattribute.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public_html/includes/class/class.LSattribute.php b/public_html/includes/class/class.LSattribute.php index 7eb7b931..3fd10983 100644 --- a/public_html/includes/class/class.LSattribute.php +++ b/public_html/includes/class/class.LSattribute.php @@ -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;