Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
function poll_teaser($node) {
if (is_array($node->choice)) {
foreach ($node->choice as $k => $choice) {
$teaser .= '* '. $choice['chtext'] .'\n';
}
}
return $teaser;
}
If $node is not an array, poll_teaser() tries to return the value of $teaser without $teaser ever having been defined.
Comment | File | Size | Author |
---|---|---|---|
#1 | _40630_poll.patch | 731 bytes | Morbus Iff |
Comments
Comment #1
Morbus IffComment #2
Dries CreditAttribution: Dries commentedCommitted to HEAD. Thanks.
Comment #3
Dries CreditAttribution: Dries commentedComment #4
(not verified) CreditAttribution: commented