Skip to content
Snippets Groups Projects
Commit 72df236e authored by Tim Steiner's avatar Tim Steiner
Browse files

Make only first activity listing upper case in bulletin preview

parent 483026a7
Branches
No related tags found
No related merge requests found
...@@ -118,14 +118,14 @@ ...@@ -118,14 +118,14 @@
// activities // activities
$activityListing = array(); $activityListing = array();
foreach($course->activities as $activity) { foreach($course->activities as $activity) {
$newActivityListing = ucfirst($activity->type); $newActivityListing = $activity->type;
if($activity->hours != '' && $activity->hours != '0') { if($activity->hours != '' && $activity->hours != '0') {
$newActivityListing .= ' ' . $activity->hours; $newActivityListing .= ' ' . $activity->hours;
} }
$activityListing[] = $newActivityListing; $activityListing[] = $newActivityListing;
} }
if(count($activityListing) > 0) { if(count($activityListing) > 0) {
echo implode(', ', $activityListing) . '.'; echo ucfirst(implode(', ', $activityListing) . '.');
} }
?> ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment