diff --git a/fivestar.module b/fivestar.module
index ff2bfaf..1ff29d6 100644
--- a/fivestar.module
+++ b/fivestar.module
@@ -914,7 +914,7 @@ function fivestar_fivestar_widgets() {
  *
  * Adds the fievestar widget to the node view.
  */
-function fivestar_nodeapi(&$node, $op, $teaser, $page) {
+function fivestar_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {
   switch ($op) {
     case 'view':
       $exclude_modes = array(
