https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21281

Marcel de Rooy <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
             Status|Signed Off                  |BLOCKED
         QA Contact|[email protected] |[email protected]
                   |y.org                       |

--- Comment #15 from Marcel de Rooy <[email protected]> ---
-    my $query = "SELECT `$params[0]` FROM $params[1]";
+    my $fields_list = $params[0];

If I am not mistaken, params[0] is a single field, not a field list. So the new
variable name is confusing.

If it would be a list of fields, this code does not look good:
+    if (index($fields_list, ' ')==-1 && index($fields_list,',')==-1 &&
$fields_list ne '*') {
+        $fields_list = "`$fields_list`";
+    }
If you would pass 'rows, something', it would not add backtics.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to