Skip to content

Commit

Permalink
MSFTMPP-207: Remove course sharepoint link when MS block is viewed fr…
Browse files Browse the repository at this point in the history
…om the site course page.
  • Loading branch information
jamesmcq committed Aug 5, 2015
1 parent 2eed1cd commit fdf11f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/microsoft/block_microsoft.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function get_content() {

$items = [];

if ($PAGE->context instanceof \context_course) {
if ($PAGE->context instanceof \context_course && $PAGE->context->instanceid !== SITEID) {
if (!empty($o365config->sharepointlink)) {
$courserec = $DB->get_record('course', ['id' => $PAGE->context->instanceid]);
if (!empty($courserec)) {
Expand Down

0 comments on commit fdf11f0

Please sign in to comment.