Skip to content

Commit

Permalink
MDL-7857 uninitialized context in mod/data/index.php; backported from…
Browse files Browse the repository at this point in the history
… HEAD
  • Loading branch information
skodak committed Dec 10, 2006
1 parent 683b038 commit 91b890f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mod/data/index.php
Expand Up @@ -33,6 +33,8 @@

require_course_login($course);

$context = get_context_instance(CONTEXT_COURSE, $course->id);

add_to_log($course->id, "data", "view all", "index.php?id=$course->id", "");

$strweek = get_string('week');
Expand Down

0 comments on commit 91b890f

Please sign in to comment.