From: Colin Campbell Date: Fri, 1 Jun 2012 07:10:21 +0000 (+0100) Subject: Bug 8176 [SIGNED-OFF] Assign an intial value to $sqlwhere X-Git-Url: http://git.rot13.org/?p=koha.git;a=commitdiff_plain;h=6dda8a63795439cde4d97f97b9d09b63011ef54a Bug 8176 [SIGNED-OFF] Assign an intial value to $sqlwhere 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 Removes a warning in logs Signed-off-by: Paul Poulain --- diff --git a/C4/Serials.pm b/C4/Serials.pm index 20ad7067b4..af5c8335c6 100644 --- a/C4/Serials.pm +++ b/C4/Serials.pm @@ -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;