Commit d4fe9203 authored by Dries's avatar Dries
Browse files

- Patch #40630 by Morbus: made sure $teaser is always defined.

parent c11080c0
......@@ -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';
......
......@@ -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';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment