Skip to content

Commit

Permalink
MDL-53787 block_lp: Make sure that competencies are enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Massart committed Apr 18, 2016
1 parent 300d30e commit a8a10b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blocks/lp/block_lp.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ public function get_content() {
}
$this->content = new stdClass();

if (!\core_competency\api::is_enabled()) {
return $this->content;
}

$summary = new \block_lp\output\summary();
if (!$summary->has_content()) {
return $this->content;
Expand Down

0 comments on commit a8a10b1

Please sign in to comment.