--- webform.inc	2005-07-18 15:44:08.000000000 +0100
+++ webform.inc.new	2005-07-18 15:36:44.000000000 +0100
@@ -372,7 +372,7 @@
       switch($record_array[0]['components'][$index]['type']){
       case 'scale':
       case 'select':
-        if($record_array[0]['components'][$index]['options']['multiple'] == 'Y'){
+        if($record_array[0]['components'][$index]['options']['multiple'] == 1){
           $record_array[1]['components'][$index]['data'] = unserialize($record->data);
         } else {
           $record_array[1]['components'][$index]['data'][0] = $record->data;
@@ -768,13 +768,13 @@
         
         if(is_array($extra_data)){
           
-          if($extra_data['multiple'] == 'Y'){
+          if($extra_data['multiple'] == 1){
             $multiple_choice = true;		// ie Checkboxes
           } else {
             $multiple_choice = false;		// ie Radio Buttons
           }
 
-          if($extra_data['aslist'] == 'Y'){
+          if($extra_data['aslist'] == 1){
             $aslist = true;   // ie List Box and thus implying lot's of choices
           } else {
             $aslist = false;
@@ -883,7 +883,7 @@
         $extra_data = unserialize($field->extra);
         
         if(is_array($extra_data)){    
-          if($extra_data['aslist'] == 'Y'){
+          if($extra_data['aslist'] == 1){
             $aslist = true;   // ie List Box and thus implying lot's of choices
           } else {
             $aslist = false;
--- webform.module	2005-07-18 15:44:08.000000000 +0100
+++ webform.module.new	2005-07-18 15:36:25.000000000 +0100
@@ -679,8 +679,8 @@
                             t('The preselected value.').'<br />'.
                             webform_help('webform/helptext#variables').
                             ($error['webform_edited_default'] ? $error['webform_edited_default'] : ''));
-    $form .= form_checkbox(t('Listbox'), "webform_edited_extra][aslist", 'Y',
-                           ($currfield['extra']['aslist']=='Y'?TRUE:FALSE), 
+    $form .= form_checkbox(t('Listbox'), "webform_edited_extra][aslist", 1,
+                           ($currfield['extra']['aslist']==1?TRUE:FALSE), 
                            t('Check this option if you want the select component to be of listbox instead of radiobuttons.'));
     break;
   case 'select':
@@ -694,11 +694,11 @@
                             t('The preselected value.').'<br />'.
                             webform_help('webform/helptext#variables').
                             ($error['webform_edited_default'] ? $error['webform_edited_default'] : ''));
-    $form .= form_checkbox(t('Multiple'), "webform_edited_extra][multiple", 'Y',
-                           ($currfield['extra']['multiple']=='Y'?TRUE:FALSE), 
+    $form .= form_checkbox(t('Multiple'), "webform_edited_extra][multiple", 1,
+                           ($currfield['extra']['multiple']==1?TRUE:FALSE), 
                            t('Check this option if the user should be allowed to choose multiple values.'));
-    $form .= form_checkbox(t('Listbox'), "webform_edited_extra][aslist", 'Y',
-                           ($currfield['extra']['aslist']=='Y'?TRUE:FALSE), 
+    $form .= form_checkbox(t('Listbox'), "webform_edited_extra][aslist", 1,
+                           ($currfield['extra']['aslist']==1?TRUE:FALSE), 
                            t('Check this option if you want the select component to be of listbox type instead of radiobuttons or checkboxes.'));
     break;
     
@@ -876,7 +876,7 @@
     }
 
     $record = db_fetch_object($main_result);
-    $value = ($extra['multiple'] == 'Y') ? unserialize($record->data):$record->data;
+    $value = ($extra['multiple'] == 1) ? unserialize($record->data):$record->data;
   }
 
   switch($type) {
@@ -892,17 +892,17 @@
       if ( strlen($v) )
         $options[$v] = $v;
     }
-    if ( $extra['aslist'] == 'Y' ) {
+    if ( $extra['aslist'] == 1 ) {
       if ( !is_array($value) ) {
         $value = array($value);
       }
       return form_select($name,  $componentname,
                          $value, $options,
                          _webform_filtervalues($extra['description']), $extra['attributes']['dummy'], 
-                         ($extra['multiple'] == 'Y'), $mandatory);
+                         ($extra['multiple'] == 1), $mandatory);
       }else
       {
-      if ( $extra['multiple'] == 'Y' ) {
+      if ( $extra['multiple'] == 1 ) {
         if ( !is_array($value) ) {
           $value = array($value);
         }
@@ -928,7 +928,7 @@
     if ( array_search($value, $options) ) {
       $value = array_search($value, $options);
     }
-    if ( $extra['aslist'] == 'Y' ) {
+    if ( $extra['aslist'] == 1 ) {
       if ( !is_array($value) ) {
         $value = array($value);
       }
