MDL-74790 mod_resource: better detection of empty module intro.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user