summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2014-05-06 01:58:11 -0400
committerDavid Rothstein <drothstein@gmail.com>2014-05-06 01:58:11 -0400
commit56670b32a07fcf0628271e551bfad54fd94a953f (patch)
tree33a62bc3cec3d68e29b156833d2aec7451ba3c78
parente928b8537bc2987ab4c1a0b5f944eed1957b253c (diff)
downloadbrdo-56670b32a07fcf0628271e551bfad54fd94a953f.tar.gz
brdo-56670b32a07fcf0628271e551bfad54fd94a953f.tar.bz2
Issue #1200478 by mitron, pounard, David_Rothstein | nicholasThompson: Incorrect setting of the 'class' attribute to a string in the Comment module (could cause fatal errors under rare conditions).
-rw-r--r--modules/comment/comment.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 6f6c04b08..3c942002c 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -2304,7 +2304,7 @@ function template_preprocess_comment(&$variables) {
$variables['signature'] = $comment->signature;
$uri = entity_uri('comment', $comment);
- $uri['options'] += array('attributes' => array('class' => 'permalink', 'rel' => 'bookmark'));
+ $uri['options'] += array('attributes' => array('class' => array('permalink'), 'rel' => 'bookmark'));
$variables['title'] = l($comment->subject, $uri['path'], $uri['options']);
$variables['permalink'] = l(t('Permalink'), $uri['path'], $uri['options']);