Skip to content

Commit

Permalink
MDL-14564 pg null trouble fixed by David Mudrak
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Apr 27, 2008
1 parent 0cc7163 commit 556e66c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mod/assignment/lib.php
Expand Up @@ -627,6 +627,9 @@ function submissions($mode) {
/// text columns haven't a default, so we must provide it before insert. MDL-11268
$submission->data1 = '';
$submission->data2 = '';
if (!isset($submission->submissioncomment)) {
$submission->submissioncomment = '';
}
if (!insert_record('assignment_submissions', $submission)) {
return false;
}
Expand Down

0 comments on commit 556e66c

Please sign in to comment.