From: moodler Date: Fri, 18 Apr 2003 07:25:32 +0000 (+0000) Subject: Robustness on a variable X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=fc6a91994ed81f81c7213c1d80753762734bfa7c;p=moodle.git Robustness on a variable --- diff --git a/course/lib.php b/course/lib.php index 90bcf10c0b..5f07cc4d03 100644 --- a/course/lib.php +++ b/course/lib.php @@ -359,7 +359,8 @@ function print_recent_activity($course) { } break; case "delete mod": - if ($changelist["$log->info"]["operation"] == "add") { + if (!empty($changelist["$log->info"]["operation"]) and + $changelist["$log->info"]["operation"] == "add") { $changelist["$log->info"] = NULL; } else { $strdeleted = get_string("deletedactivity", "moodle", get_string("modulename", $info[0]));