diff --git a/lib/goo/sparql/mixins/solution_lang_filter.rb b/lib/goo/sparql/mixins/solution_lang_filter.rb index fb4d116b..4fb12292 100644 --- a/lib/goo/sparql/mixins/solution_lang_filter.rb +++ b/lib/goo/sparql/mixins/solution_lang_filter.rb @@ -78,7 +78,7 @@ def save_other_lang_val(id, attr, index, value) def matched_languages(index_values, model_attribute_val) not_matched_lang = index_values[:not_matched] matched_lang = index_values.reject { |key| key == :not_matched } - unless model_attribute_val.nil? || model_attribute_val.empty? + unless model_attribute_val.nil? || Array(model_attribute_val).empty? matched_lang[:no_lang] = Array(model_attribute_val) end [matched_lang, not_matched_lang]