Initialize object as new stdClass instead of NULL.

This commit is contained in:
defacer
2005-04-26 21:26:17 +00:00
parent e5ee4adfd4
commit a2ad73deb9
+1 -1
View File
@@ -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