Index: fivestar.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/fivestar/fivestar.module,v
retrieving revision 1.13.2.38
diff -u -p -r1.13.2.38 fivestar.module
--- fivestar.module     23 Aug 2008 05:17:09 -0000      1.13.2.38
+++ fivestar.module     6 Apr 2009 17:11:35 -0000
@@ -1466,6 +1466,10 @@ function fivestar_expand($element) {
     $element['#default_value'] = 0;
   }
 
+  if (!isset($element['#stars'])) {
+    $element['#stars'] = 5;
+  }
+
   $options = array('-' => t('Select rating'));
   $default_value = $element['#default_value'];
   for ($i = 0; $i <= $element['#stars']; $i++) {
