Commit f9e7fe6c authored by Son Nguyen's avatar Son Nguyen Committed by Gerrit Code Review

Merge "Making sure empty $values parameter is sent as array() (Bug #1400514)"

parents 2422dd9d ee4a55fd
......@@ -1117,7 +1117,7 @@ abstract class ArtefactType implements IArtefactType {
FROM {artefact_attachment} aa
INNER JOIN {artefact} a ON aa.attachment = a.id
LEFT JOIN {artefact_file_files} f ON a.id = f.artefact
WHERE aa.artefact IN (' . join(', ', array_map('intval', $artefactids)) . ')', '');
WHERE aa.artefact IN (' . join(', ', array_map('intval', $artefactids)) . ')', array());
if (!$attachments) {
return array();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment