diff --git a/classes/external/get_cm.php b/classes/external/get_cm.php index 4a1878e..30ba28c 100644 --- a/classes/external/get_cm.php +++ b/classes/external/get_cm.php @@ -86,8 +86,8 @@ public static function execute(int $cmid): array { 'modname' => $cm->modname, ]; - // Remove description for labels, because it is already in html. - if ($cm->modname === 'label') { + // Remove description for labels / unilabels, because it is already in html. + if ($cm->modname === 'label' || $cm->modname === 'unilabel') { $PAGE->activityheader->set_description(''); }