Browse files

MDL-35435: Fix invalid CSV file when assignment has no enrolled stude…

…nt and submission in offline grading worksheet
  • Loading branch information...
1 parent a3ab18c commit 5fc596303f011047393d6d3ef2b8d42b349c577f @raymondAntonio raymondAntonio committed Sep 18, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 mod/assign/gradingtable.php
View
4 mod/assign/gradingtable.php
@@ -302,6 +302,10 @@ public function __construct(assign $assignment, $perpage, $filter, $rowoffset, $
}
}
+ // When there is no data we still want the column headers printed in the csv file.
+ if ($this->is_downloading()) {
+ $this->start_output();
+ }
}
/**

0 comments on commit 5fc5963

Please sign in to comment.