may be getting an undef?
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 3 Oct 2007 19:00:01 +0000 (19:00 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 3 Oct 2007 19:00:01 +0000 (19:00 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@7865 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/WWW/Exporter.pm

index 8e2811c..e99b968 100644 (file)
@@ -56,7 +56,7 @@ sub handler {
        # find some IDs ...
        my @records;
 
-       @records = $cgi->param('id');
+       @records = map { $_ ? ($_) : () } $cgi->param('id');
 
        if (!@records) { # try for a file
                my $file = $cgi->param('idfile');
@@ -88,7 +88,7 @@ sub handler {
 
        return show_template($r) unless (@records);
 
-       warn "ids: :". join(',',@records);
+       warn "ids: ". join(',',@records);
 
        my $type = $cgi->param('rectype') || 'biblio';
        if ($type ne 'biblio' && $type ne 'authority') {