summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 6bd67757c..3820d27d8 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -444,7 +444,7 @@ function comment_edit($cid) {
$comment = drupal_unpack($comment);
$comment->name = $comment->uid ? $comment->registered_name : $comment->name;
if (comment_access('edit', $comment)) {
- return comment_form(object2array($comment));
+ return comment_form((array)$comment);
}
else {
drupal_access_denied();
@@ -1349,7 +1349,7 @@ function comment_form_add_preview($form, $edit) {
$output = '';
- $comment = array2object(comment_validate($edit));
+ $comment = (object)comment_validate($edit);
// Attach the user and time information.
if ($edit['author']) {