From 73beadaa928e40987f5ab2518665ff3d832a69d3 Mon Sep 17 00:00:00 2001 From: Gerhard Gonter <ggonter@gmail.com> Date: Mon, 28 Nov 2016 08:47:54 +0100 Subject: [PATCH] do not modify the array passed in as reference --- lib/Redmine/DB/MySQL.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Redmine/DB/MySQL.pm b/lib/Redmine/DB/MySQL.pm index d52d2ed..935b676 100644 --- a/lib/Redmine/DB/MySQL.pm +++ b/lib/Redmine/DB/MySQL.pm @@ -73,8 +73,8 @@ sub get_all_x if (defined ($where)) { # print "where: ", Dumper ($where) if ($show_query); - $ss .= ' WHERE ' . shift (@$where); - @v= @$where; + @v= @$where; # copy first! + $ss .= ' WHERE ' . shift (@v); } if ($show_query) -- GitLab