Commit bcf380e465340b88229a408acb0411025914d31f
1 parent
a686741e
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
fix error harverst without dspace set
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/virtuoso/lib/virtuoso_plugin/dspace_harvest.rb
... | ... | @@ -55,7 +55,7 @@ class VirtuosoPlugin::DspaceHarvest |
55 | 55 | |
56 | 56 | def self.harvest_all(environment, from_start) |
57 | 57 | settings = Noosfero::Plugin::Settings.new(environment, VirtuosoPlugin) |
58 | - if defined?(settings.dspace_servers) | |
58 | + if settings.dspace_servers.present? | |
59 | 59 | settings.dspace_servers.each do |k, v| |
60 | 60 | harvest = VirtuosoPlugin::DspaceHarvest.new(environment, k[:dspace_uri]) |
61 | 61 | harvest.start(from_start) | ... | ... |