Index: views_checkboxes.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/views_checkboxes/views_checkboxes.module,v retrieving revision 1.4 diff -u -r1.4 views_checkboxes.module --- views_checkboxes.module 23 Jan 2008 23:28:33 -0000 1.4 +++ views_checkboxes.module 28 Jan 2008 17:15:19 -0000 @@ -75,12 +75,15 @@ // The view options are an array of objects, instead of the typical array. This will recreate // them as a typical form option array. $newoptions = array(); - + + // Disabling the **ALL** option entirely, if it exists. + if(isset($form["filter$count"]['#options']['**ALL**'])){ + array_shift($form['filter'.$count]['#options']); + }; foreach ($form['filter'.$count]['#options'] as $option_id => $option) { - // I'm disabling the **ALL** option entirely, if it exists. - if ($option_id === '**ALL**') continue; - - foreach ($form['filter'.$count]['#options'][$option_id]->option as $num => $val) { + if (!is_array($option->option)) continue; + + foreach ($option->option as $num => $val) { $newoptions[$num] = $val; } } @@ -89,5 +92,4 @@ } } -} -?> \ No newline at end of file +} \ No newline at end of file