summaryrefslogtreecommitdiff
path: root/modules/comment.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-12-31 10:48:56 +0000
committerDries Buytaert <dries@buytaert.net>2005-12-31 10:48:56 +0000
commitea2d79109595f0c936259ffacfccd904f8dcd599 (patch)
treeba709e7605b91af6bbb0c613850be03f83e88935 /modules/comment.module
parent9ff2c1b3a8c5fcbf656cc744f210fc37f16a5075 (diff)
downloadbrdo-ea2d79109595f0c936259ffacfccd904f8dcd599.tar.gz
brdo-ea2d79109595f0c936259ffacfccd904f8dcd599.tar.bz2
- Patch 41169 by Chris: got rid of expensvie object 2 array casts.
Diffstat (limited to 'modules/comment.module')
-rw-r--r--modules/comment.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment.module b/modules/comment.module
index 6bd67757c..3820d27d8 100644
--- a/modules/comment.module
+++ b/modules/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']) {