Skip to content
Snippets Groups Projects
Commit 73beadaa authored by Gerhard Gonter's avatar Gerhard Gonter :speech_balloon:
Browse files

do not modify the array passed in as reference

parent 28649d1f
Branches
No related tags found
No related merge requests found
...@@ -73,8 +73,8 @@ sub get_all_x ...@@ -73,8 +73,8 @@ sub get_all_x
if (defined ($where)) if (defined ($where))
{ {
# print "where: ", Dumper ($where) if ($show_query); # print "where: ", Dumper ($where) if ($show_query);
$ss .= ' WHERE ' . shift (@$where); @v= @$where; # copy first!
@v= @$where; $ss .= ' WHERE ' . shift (@v);
} }
if ($show_query) if ($show_query)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment