Permalink
Browse files

Firming it up

  • Loading branch information...
moodler
moodler committed Jun 14, 2003
1 parent cb208bf commit f43e7c6f0e26549cd270c573de57d9b90cddcd1f
Showing with 8 additions and 7 deletions.
  1. +8 −7 course/format/topics.php
View
@@ -136,16 +136,17 @@
while ($section <= $course->numsections) {
if (!empty($displaysection) and $displaysection != $section) {
if (!empty($sections[$section])) {
if (strlen($sections[$section]->summary) < 57) {
$strsummary = " - ".$sections[$section]->summary;
if (empty($sections[$section])) {
$strsummary = "";
} else {
$strsummary = " - ".strip_tags($sections[$section]->summary);
if (strlen($strsummary) < 57) {
$strsummary = " - $strsummary";
} else {
$strsummary = " - ".substr($sections[$section]->summary, 0, 60)."...";
$strsummary = " - ".substr($strsummary, 0, 60)."...";
}
} else {
$strsummary = "";
}
$sectionmenu["topic=$section"] = "$section$strsummary";
$sectionmenu["topic=$section"] = s("$section$strsummary");
$section++;
continue;
}

0 comments on commit f43e7c6

Please sign in to comment.