Commit ef813fe7 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Avoid log warning caused by calling array_combine on empty arrays


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 78b2ddef
......@@ -1356,7 +1356,9 @@ function artefact_watchlist_notification($artefactids) {
function artefact_get_descendants($new) {
$seen = array();
$new = array_combine($new, $new);
if (!empty($new)) {
$new = array_combine($new, $new);
}
while (!empty($new)) {
$seen = $seen + $new;
$children = get_column_sql('
......
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