Skip to content

Commit

Permalink
Merge branch 'MDL-36587-master' of git://github.com/damyon/moodle
Browse files Browse the repository at this point in the history
Conflicts:
	mod/assign/locallib.php
  • Loading branch information
danpoltawski committed Jan 15, 2013
2 parents a0ea4d9 + 9b7a5f6 commit 0a9b944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/assign/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2540,7 +2540,7 @@ protected function view_grading_table() {
$gradebookurl = '/grade/report/grader/index.php?id=' . $this->get_course()->id;
$links[$gradebookurl] = get_string('viewgradebook', 'assign');
}
if ($this->is_any_submission_plugin_enabled()) {
if ($this->is_any_submission_plugin_enabled() && $this->count_submissions()) {
$downloadurl = '/mod/assign/view.php?id=' . $cmid . '&action=downloadall';
$links[$downloadurl] = get_string('downloadall', 'assign');
}
Expand Down

0 comments on commit 0a9b944

Please sign in to comment.