mirror of
https://github.com/PlagiarismCheck/moodle-plagiarism_pchkorg.git
synced 2024-12-22 12:10:08 +00:00
Do not send empty filter values
This commit is contained in:
parent
17bcf5747f
commit
e8838f35ed
@ -193,8 +193,10 @@ class plagiarism_pchkorg_api_provider {
|
||||
$body .= $this->get_part('skip_percentage_words_validation', '1', $boundary);
|
||||
$body .= $this->get_part('lms', 'moodle', $boundary);
|
||||
foreach ($filters as $filtername => $filtervalue) {
|
||||
if ($filtervalue !== null) {
|
||||
$body .= $this->get_part($filtername, $filtervalue, $boundary);
|
||||
}
|
||||
}
|
||||
$body .= $this->get_file_part('content', $content, $mime, $filename, $boundary);
|
||||
$body .= '--' . $boundary . '--' . $eol;
|
||||
|
||||
@ -380,8 +382,10 @@ class plagiarism_pchkorg_api_provider {
|
||||
$body .= $this->get_part('attachment_id', $attachmentid, $boundary);
|
||||
$body .= $this->get_part('lms', 'moodle', $boundary);
|
||||
foreach ($filters as $filtername => $filtervalue) {
|
||||
if ($filtervalue !== null) {
|
||||
$body .= $this->get_part($filtername, $filtervalue, $boundary);
|
||||
}
|
||||
}
|
||||
$body .= $this->get_file_part('text', $content, $mime, $filename, $boundary);
|
||||
$body .= '--' . $boundary . '--' . $eol;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user