From ea2d79109595f0c936259ffacfccd904f8dcd599 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 31 Dec 2005 10:48:56 +0000 Subject: - Patch 41169 by Chris: got rid of expensvie object 2 array casts. --- modules/comment/comment.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/comment/comment.module') 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']) { -- cgit v1.2.3