summaryrefslogtreecommitdiff
path: root/modules/poll/poll.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-04-11 18:33:44 +0000
committerDries Buytaert <dries@buytaert.net>2010-04-11 18:33:44 +0000
commitff301288f2ea06d76606c05bccac5957e2873a94 (patch)
treeb46d9d7e56612945850281a136161967ba8bc5f2 /modules/poll/poll.module
parentde33f74b4040cc3f7880269152b277d90b081cc8 (diff)
downloadbrdo-ff301288f2ea06d76606c05bccac5957e2873a94.tar.gz
brdo-ff301288f2ea06d76606c05bccac5957e2873a94.tar.bz2
- Patch #348448 by mfb, c960657, marvil07, cdale, jpmckinney: fixed PHP strict warnings when running tests and for PHP 5.3.
Diffstat (limited to 'modules/poll/poll.module')
-rw-r--r--modules/poll/poll.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module
index 38fa77495..7d012e6fd 100644
--- a/modules/poll/poll.module
+++ b/modules/poll/poll.module
@@ -842,7 +842,8 @@ function theme_poll_choices($variables) {
function template_preprocess_poll_results(&$variables) {
$variables['links'] = theme('links__poll_results', array('links' => $variables['raw_links']));
if (isset($variables['vote']) && $variables['vote'] > -1 && user_access('cancel own vote')) {
- $variables['cancel_form'] = drupal_render(drupal_get_form('poll_cancel_form', $variables['nid']));
+ $elements = drupal_get_form('poll_cancel_form', $variables['nid']);
+ $variables['cancel_form'] = drupal_render($elements);
}
$variables['title'] = check_plain($variables['raw_title']);