mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
MINOR: added condition to make sure we have submitted date
This commit is contained in:
parent
af2fa007f2
commit
1d6cde42a8
@ -136,8 +136,9 @@ class SubmittedFormReportField extends FormField {
|
||||
$csvData .= '"' . $tmp . '",';
|
||||
}
|
||||
}
|
||||
// Start a new row for each submission
|
||||
$csvData .= '"'.$row['Submitted'].'"'."\n";
|
||||
// Start a new row for each submission (re-check we have 'Submitted' in this entry)
|
||||
if(isset($row['Submitted'])) $csvData .= '"'.$row['Submitted'].'"'."\n";
|
||||
else $csvData .= '\n';
|
||||
}
|
||||
} else {
|
||||
user_error("No submissions to export.", E_USER_ERROR);
|
||||
|
Loading…
x
Reference in New Issue
Block a user