From 8a59942e4c33d1f0cf5ed1183281598fa1990e67 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Wed, 22 Oct 2003 16:19:21 +0000 Subject: [PATCH] Take out one notice when the only activity was create a module and delete it. Strange but possible. :-) --- course/lib.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/course/lib.php b/course/lib.php index af82da58a4..e2003bc18a 100644 --- a/course/lib.php +++ b/course/lib.php @@ -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 "

".$change["text"]."

"; + if (isset($changes)){ + if (count($changes) > 0) { + print_headline(get_string("courseupdates").":"); + $content = true; + foreach ($changes as $changeinfo => $change) { + echo "

".$change["text"]."

"; + } } } } -- 2.39.5