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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user