Take out one notice when the only activity was

create a module and delete it. Strange but possible. :-)
This commit is contained in:
stronk7
2003-10-22 16:19:21 +00:00
parent d89a514226
commit 8a59942e4c
+7 -5
View File
@@ -308,11 +308,13 @@ function print_recent_activity($course) {
$changes[$changeinfo] = $change;
}
}
if (count($changes) > 0) {
print_headline(get_string("courseupdates").":");
$content = true;
foreach ($changes as $changeinfo => $change) {
echo "<p><font size=1>".$change["text"]."</font></p>";
if (isset($changes)){
if (count($changes) > 0) {
print_headline(get_string("courseupdates").":");
$content = true;
foreach ($changes as $changeinfo => $change) {
echo "<p><font size=1>".$change["text"]."</font></p>";
}
}
}
}