From b8d3aa8fc895c54b7a82455eb6fc0b2bc4408fe0 Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Wed, 27 Feb 2013 09:27:04 +0800 Subject: [PATCH] MDL-35127 Assignment - declare the variables in the outer scope (for readability) --- mod/assign/lib.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mod/assign/lib.php b/mod/assign/lib.php index ee7de4616b6..aad2a587d73 100644 --- a/mod/assign/lib.php +++ b/mod/assign/lib.php @@ -337,6 +337,9 @@ function assign_print_overview($courses, &$htmlarray) { // We do all possible database work here *outside* of the loop to ensure this scales. list($sqlassignmentids, $assignmentidparams) = $DB->get_in_or_equal($assignmentids); + $mysubmissions = null; + $unmarkedsubmissions = null; + foreach ($assignments as $assignment) { // Do not show assignments that are not open. if (!in_array($assignment->id, $assignmentids)) {