Skip to content

Commit

Permalink
MDL-32978 Gradebook: Fix strict standards notices
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Massart committed May 14, 2012
1 parent dfb597b commit 6189c7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions grade/export/txt/grade_export_txt.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ class grade_export_txt extends grade_export {

public $separator; // default separator

public function grade_export_txt($course, $groupid=0, $itemlist='', $export_feedback=false, $updatedgradesonly = false, $displaytype = GRADE_DISPLAY_TYPE_REAL, $decimalpoints = 2, $separator='comma', $onlyactive = false) {
$this->grade_export($course, $groupid, $itemlist, $export_feedback, $updatedgradesonly, $displaytype, $decimalpoints, $onlyactive);
$this->separator = $separator;
}

public function __construct($course, $groupid=0, $itemlist='', $export_feedback=false, $updatedgradesonly = false, $displaytype = GRADE_DISPLAY_TYPE_REAL, $decimalpoints = 2, $separator = 'comma', $onlyactive = false) {
parent::__construct($course, $groupid, $itemlist, $export_feedback, $updatedgradesonly, $displaytype, $decimalpoints, $onlyactive);
$this->separator = $separator;
Expand Down
3 changes: 3 additions & 0 deletions grade/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ function next_user() {

if (!empty($this->grade_items)) {
foreach ($this->grade_items as $grade_item) {
if (!isset($feedbacks[$grade_item->id])) {
$feedbacks[$grade_item->id] = new stdClass();
}
if (array_key_exists($grade_item->id, $grade_records)) {
$feedbacks[$grade_item->id]->feedback = $grade_records[$grade_item->id]->feedback;
$feedbacks[$grade_item->id]->feedbackformat = $grade_records[$grade_item->id]->feedbackformat;
Expand Down

0 comments on commit 6189c7b

Please sign in to comment.