diff --git a/modules/poll.module b/modules/poll.module index ac8ca6d798e..f90aaa3f8a2 100644 --- a/modules/poll.module +++ b/modules/poll.module @@ -292,6 +292,7 @@ function poll_perm() { * Creates a simple teaser that lists all the choices. */ function poll_teaser($node) { + $teaser = NULL; if (is_array($node->choice)) { foreach ($node->choice as $k => $choice) { $teaser .= '* '. $choice['chtext'] .'\n'; diff --git a/modules/poll/poll.module b/modules/poll/poll.module index ac8ca6d798e..f90aaa3f8a2 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -292,6 +292,7 @@ function poll_perm() { * Creates a simple teaser that lists all the choices. */ function poll_teaser($node) { + $teaser = NULL; if (is_array($node->choice)) { foreach ($node->choice as $k => $choice) { $teaser .= '* '. $choice['chtext'] .'\n';