Skip to content
Browse files

Little tidyings, I should be in bed watching Scrubs!

  • Loading branch information...
1 parent 0cdb296 commit dbdfc3dbab7265f5a59013fe11e28a7060fc29dc moodler committed Mar 26, 2006
Showing with 4 additions and 4 deletions.
  1. +2 −1 mod/data/lib.php
  2. +2 −3 mod/data/view.php
View
3 mod/data/lib.php
@@ -1152,7 +1152,8 @@ function data_print_comment($data, $commentid) {
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
View
5 mod/data/view.php
@@ -131,7 +131,7 @@
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');
}
@@ -345,8 +345,7 @@
if (!$records = get_records_sql($sql)){
if ($search){
notify(get_string('nomatch','data'));
- }
- else {
+ } else {
notify(get_string('norecords','data'));
}

0 comments on commit dbdfc3d

Please sign in to comment.
Something went wrong with that request. Please try again.