Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 17a0f7350fec04f1257f76d9a5fe92cf3cf2df9d 1 parent 60ca7d5
@ankitagarwal ankitagarwal authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  blocks/community/locallib.php
View
1  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.
Something went wrong with that request. Please try again.