From 51cf18e53176244f264c56cab1c4ff0d1767ac59 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Sun, 22 Aug 2004 17:03:42 +0000 Subject: - #9292: Make Drupal (somewhat) PHP5 compatible. xtemplate is still horribly broken. --- modules/comment.module | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/comment.module') diff --git a/modules/comment.module b/modules/comment.module index 0f9980b67..923381af0 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -502,6 +502,7 @@ function comment_preview($edit) { $output = ''; + $comment = new StdClass(); foreach ($edit as $key => $value) { $comment->$key = $value; } -- cgit v1.2.3