Skip to content

Commit

Permalink
MDL-42574 blocks: Fix strict standards warning in community block
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitagarwal committed Oct 28, 2013
1 parent 60ca7d5 commit 17a0f73
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions blocks/community/locallib.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public function block_community_add_course($course, $userid) {
$community = $this->block_community_get_course($course->url, $userid); $community = $this->block_community_get_course($course->url, $userid);


if (empty($community)) { if (empty($community)) {
$community = new stdClass();
$community->userid = $userid; $community->userid = $userid;
$community->coursename = $course->name; $community->coursename = $course->name;
$community->coursedescription = $course->description; $community->coursedescription = $course->description;
Expand Down

0 comments on commit 17a0f73

Please sign in to comment.