Bug 8176 [SIGNED-OFF] Assign an intial value to $sqlwhere
authorColin Campbell <colin.campbell@ptfs-europe.com>
Fri, 1 Jun 2012 07:10:21 +0000 (08:10 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Tue, 5 Jun 2012 15:03:51 +0000 (17:03 +0200)
warnings in log because of undefined value in
string concatenation
variable should be initialized to empty string rather
than left undefined

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Removes a warning in logs

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
C4/Serials.pm

index 20ad706..af5c833 100644 (file)
@@ -566,7 +566,7 @@ sub GetSubscriptions {
             LEFT JOIN biblioitems ON biblio.biblionumber = biblioitems.biblionumber
     );
     my @bind_params;
-    my $sqlwhere;
+    my $sqlwhere = q{};
     if ($biblionumber) {
         $sqlwhere = "   WHERE biblio.biblionumber=?";
         push @bind_params, $biblionumber;