Initializing $parent to new stdClass was a major oops. However, seems it doesn't

need to be initialized at all. So I won't hold this against the practice in general.
This commit is contained in:
defacer
2005-04-26 21:50:44 +00:00
parent 10426cefb6
commit c6c3a59941
-3
View File
@@ -169,9 +169,6 @@
$defaultformat = FORMAT_MOODLE;
}
$parent = new stdClass; // Initialise some things
if (isset($post->error)) { // User is re-editing a failed posting
// Set up all the required objects again, and reuse the same $post