Fixed list update not working

This commit is contained in:
kolaente 2018-09-19 08:45:23 +02:00
parent aeff343a31
commit 5bb78a749e
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -9,9 +9,11 @@ func CreateOrUpdateList(list *List) (err error) {
} }
// Check if the namespace exists // Check if the namespace exists
_, err = GetNamespaceByID(list.NamespaceID) if list.NamespaceID != 0 {
if err != nil { _, err = GetNamespaceByID(list.NamespaceID)
return err if err != nil {
return err
}
} }
if list.ID == 0 { if list.ID == 0 {