Skip to content

Commit

Permalink
MDL-14564 pg null trouble fixed by David Mudrak; merged from MOODLE_1…
Browse files Browse the repository at this point in the history
…9_STABLE
  • Loading branch information
skodak committed Apr 27, 2008
1 parent 9bdb39c commit 737498e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mod/assignment/lib.php
Expand Up @@ -586,6 +586,9 @@ function submissions($mode) {

if ($updatedb){
if ($newsubmission) {
if (!isset($submission->submissioncomment)) {
$submission->submissioncomment = '';
}
if (!$sid = insert_record('assignment_submissions', $submission)) {
return false;
}
Expand Down

0 comments on commit 737498e

Please sign in to comment.