From a48dcbf604be4a93eb5c429882708b4945f00625 Mon Sep 17 00:00:00 2001 From: Ankit Agarwal Date: Mon, 28 Oct 2013 15:39:55 +0800 Subject: [PATCH] MDL-42574 blocks: Fix strict standards warning in community block --- blocks/community/locallib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/blocks/community/locallib.php b/blocks/community/locallib.php index b2ec8ab5a5c..bbfc9894572 100644 --- a/blocks/community/locallib.php +++ b/blocks/community/locallib.php @@ -38,6 +38,7 @@ class block_community_manager { $community = $this->block_community_get_course($course->url, $userid); if (empty($community)) { + $community = new stdClass(); $community->userid = $userid; $community->coursename = $course->name; $community->coursedescription = $course->description;