Permalink
Browse files

MDL-26969 assignment : clarified phpdoc and fixed whitespace.

  • Loading branch information...
1 parent aa95731 commit 2a912a7aff828d55394817ab81f11c6c56b35a0c @nebgor nebgor committed Jul 24, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/assignment/lib.php
View
4 mod/assignment/lib.php
@@ -1816,7 +1816,7 @@ function process_outcomes($userid) {
* @param int $userid int The id of the user whose submission we want or 0 in which case USER->id is used
* @param bool $createnew boolean optional Defaults to false. If set to true a new submission object will be created in the database
* @param bool $teachermodified student submission set if false
- * @return object|bool The submission or false if $createnew is false.
+ * @return object|bool The submission or false (if $createnew is false and there is no existing submission).
*/
function get_submission($userid=0, $createnew=false, $teachermodified=false) {
global $USER, $DB;
@@ -1829,7 +1829,7 @@ function get_submission($userid=0, $createnew=false, $teachermodified=false) {
if ($submission) {
return $submission;
- } else if(!$createnew) {
+ } else if (!$createnew) {
return false;
}
$newsubmission = $this->prepare_new_submission($userid, $teachermodified);

0 comments on commit 2a912a7

Please sign in to comment.