LSattr_html_select_object : fix bug witch disable default_value
authorBenjamin Renard <brenard@aconit.easter-eggs.fr>
Thu, 31 Dec 2009 16:02:07 +0000 (17:02 +0100)
committerBenjamin Renard <brenard@aconit.easter-eggs.fr>
Thu, 31 Dec 2009 16:02:07 +0000 (17:02 +0100)
public_html/includes/class/class.LSattr_html_select_object.php

index b0eeae6..dd8f5da 100644 (file)
@@ -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);