From 84554e7c592410c1a4b939de4697bf7edaf7f7f6 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 31 Dec 2009 17:02:07 +0100 Subject: [PATCH] LSattr_html_select_object : fix bug witch disable default_value --- public_html/includes/class/class.LSattr_html_select_object.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public_html/includes/class/class.LSattr_html_select_object.php b/public_html/includes/class/class.LSattr_html_select_object.php index b0eeae63..dd8f5dac 100644 --- a/public_html/includes/class/class.LSattr_html_select_object.php +++ b/public_html/includes/class/class.LSattr_html_select_object.php @@ -44,6 +44,9 @@ class LSattr_html_select_object extends LSattr_html{ return; } if ($data) { + if (!is_array($data)) { + $data=array($data); + } $values=$this -> getFormValues($data); if ($values) { $element -> setValue($values);