Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
d4fe9203
Commit
d4fe9203
authored
Dec 14, 2005
by
Dries
Browse files
- Patch
#40630
by Morbus: made sure $teaser is always defined.
parent
c11080c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/poll.module
View file @
d4fe9203
...
...
@@ -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'
;
...
...
modules/poll/poll.module
View file @
d4fe9203
...
...
@@ -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'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment