Skip to content

Commit

Permalink
Merge branch 'MDL-74790-311' of https://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
…into MOODLE_311_STABLE
  • Loading branch information
junpataleta committed Jun 14, 2022
2 parents 0c2cd0d + da60508 commit 598845e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/resource/locallib.php
Expand Up @@ -431,7 +431,7 @@ function resource_print_intro($resource, $cm, $course, $ignoresettings=false) {
}

if ($ignoresettings || !empty($options['printintro']) || $extraintro) {
$gotintro = trim(strip_tags($resource->intro));
$gotintro = !html_is_blank($resource->intro);
if ($gotintro || $extraintro) {
echo $OUTPUT->box_start('mod_introbox', 'resourceintro');
if ($gotintro) {
Expand Down

0 comments on commit 598845e

Please sign in to comment.