Fix for dependency description incorrectly prepended to update descriptions

This commit is contained in:
Greg Neagle
2018-09-10 11:27:57 -07:00
parent 1eb72873c2
commit 6689976e00
@@ -964,7 +964,7 @@ class UpdateItem: GenericItem {
start_text += "<span class=\"warning\">\(filtered_html(warning_text))</span><br/><br/>"
}
}
if (my["dependent_items"] as? [String]) != nil {
if !((my["dependent_items"] as? [String] ?? []).isEmpty) {
start_text += dependency_description()
}
}