Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-26969 assignment : clarified phpdoc and fixed whitespace.

  • Loading branch information...
commit 2a912a7aff828d55394817ab81f11c6c56b35a0c 1 parent aa95731
Aparup Banerjee nebgor authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 mod/assignment/lib.php
4 mod/assignment/lib.php
@@ -1816,7 +1816,7 @@ function process_outcomes($userid) {
1816 1816 * @param int $userid int The id of the user whose submission we want or 0 in which case USER->id is used
1817 1817 * @param bool $createnew boolean optional Defaults to false. If set to true a new submission object will be created in the database
1818 1818 * @param bool $teachermodified student submission set if false
1819   - * @return object|bool The submission or false if $createnew is false.
  1819 + * @return object|bool The submission or false (if $createnew is false and there is no existing submission).
1820 1820 */
1821 1821 function get_submission($userid=0, $createnew=false, $teachermodified=false) {
1822 1822 global $USER, $DB;
@@ -1829,7 +1829,7 @@ function get_submission($userid=0, $createnew=false, $teachermodified=false) {
1829 1829
1830 1830 if ($submission) {
1831 1831 return $submission;
1832   - } else if(!$createnew) {
  1832 + } else if (!$createnew) {
1833 1833 return false;
1834 1834 }
1835 1835 $newsubmission = $this->prepare_new_submission($userid, $teachermodified);

0 comments on commit 2a912a7

Please sign in to comment.
Something went wrong with that request. Please try again.