MDL-35127 Assignment - declare the variables in the outer scope (for readability)

This commit is contained in:
Damyon Wiese
2013-02-27 09:27:55 +08:00
parent d77731d612
commit b8d3aa8fc8
+3
View File
@@ -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)) {