MDL-31428 forum: prevent some warnings with debug enabled
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 30 Jan 2012 23:22:32 +0000 (00:22 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 30 Jan 2012 23:22:32 +0000 (00:22 +0100)
mod/forum/subscribe.php

index 6cdc2f1..f722456 100644 (file)
@@ -127,6 +127,7 @@ if (forum_is_forcesubscribed($forum)) {
     redirect($returnto, get_string("everyoneisnowsubscribed", "forum"), 1);
 }
 
+$info = new stdClass();
 $info->name  = fullname($user);
 $info->forum = format_string($forum->name);