From a2ad73deb99b08b28b5d7b90e99a030cb8a0720b Mon Sep 17 00:00:00 2001 From: defacer Date: Tue, 26 Apr 2005 21:26:17 +0000 Subject: [PATCH] Initialize object as new stdClass instead of NULL. --- mod/forum/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/forum/post.php b/mod/forum/post.php index 3cfea5bb891..1ff1b7d374d 100644 --- a/mod/forum/post.php +++ b/mod/forum/post.php @@ -169,7 +169,7 @@ $defaultformat = FORMAT_MOODLE; } - $parent=NULL; // Initialise some things + $parent = new stdClass; // Initialise some things if (isset($post->error)) { // User is re-editing a failed posting