Initialize object as new stdClass instead of NULL.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user