aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bugzilla.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/bugzilla.rb b/bugzilla.rb
index 13f19fe..97743cc 100644
--- a/bugzilla.rb
+++ b/bugzilla.rb
@@ -435,13 +435,13 @@ class BugzillaPlugin < Plugin
def search(urlparams, params = nil)
url = buglisturl + '&' + urlparams
- searchdata = CSV::Reader.create(@bot.httputil.get(url)).to_a
+ searchdata = CSV.parse(@bot.httputil.get(url))
return searchdata
end
def report(urlparams, params = nil)
url = "#{reporturl}&#{urlparams}"
- reportdata = CSV::Reader.create(@bot.httputil.get(url)).to_a
+ reportdata = CSV.parse(@bot.httputil.get(url))
if params and params[:total]
sum = 0
column = params[:total]