SIGN IN SIGN UP

fix(storage): use <> ALL when counting remaining categories

The guard in RemoveAndReplaceCategoriesByName counted categories with
"title != ANY($2)", which is true whenever the title differs from at
least one element of the array. With two or more titles in the list,
every category matched — including the ones being deleted — so the
"at least 1 category must remain" check could pass even when the
deletion would remove all of the user's categories, leaving feeds
with a NULL category. Using "title <> ALL($2)" counts only the
categories that would actually survive the deletion.
F
Fred committed
c119273b89cb9e89f8a2ab569e62d0dd8ed27306
Parent: 92057dd