Permalink
Browse files

MDL-42574 blocks: Fix strict standards warning in community block

  • Loading branch information...
1 parent 60ca7d5 commit 17a0f7350fec04f1257f76d9a5fe92cf3cf2df9d @ankitagarwal ankitagarwal committed Oct 28, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 blocks/community/locallib.php
@@ -38,6 +38,7 @@ public function block_community_add_course($course, $userid) {
$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;

0 comments on commit 17a0f73

Please sign in to comment.