Commit 8bff8673 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix artefact_get_parents_for_cache when passing one artefact id


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 704b9d48
......@@ -1165,7 +1165,7 @@ function artefact_get_attachment_types() {
}
function artefact_get_parents_for_cache($artefactids, &$parentids=false) {
if (is_integer($artefactids)) {
if (!is_array($artefactids)) {
$artefactids = array($artefactids);
}
$current = $artefactids;
......
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