echo '</td><td class="content" align="left">'."\n";
// Print whole message
- echo format_text($comment->content);
+ $options->para = false;
+ echo format_text($comment->content, FORMAT_MOODLE, $options);
/// Commands
echo '<div style="clear:both;"></div>';
}
- if ($data->intro and empty($sort) and empty($search) and empty($page)) {
+ if ($data->intro and empty($sort) and empty($search) and empty($page) and empty($rid)) {
print_simple_box(format_text($data->intro), 'center', '70%', '', 5, 'generalbox', 'intro');
}
if (!$records = get_records_sql($sql)){
if ($search){
notify(get_string('nomatch','data'));
- }
- else {
+ } else {
notify(get_string('norecords','data'));
}