Preventing another warning. In some cases in the calendar blocks, resource filtering gets called with no courseid

This commit is contained in:
mjollnir_
2005-08-31 06:13:13 +00:00
parent d5e5544448
commit e2629fc12d
+5
View File
@@ -14,6 +14,11 @@
return $text;
}
// if we don't have a courseid, we can't run the query, so
if (empty($courseid)) {
return $text;
}
/// Create a list of all the resources to search for. It may be cached already.
if (empty($resourcelist)) {