@@ -, +, @@ --- C4/NewsChannels.pm | 3 +++ 1 file changed, 3 insertions(+) --- a/C4/NewsChannels.pm +++ a/C4/NewsChannels.pm @@ -190,6 +190,9 @@ sub get_opac_news { sub GetNewsToDisplay { my ($lang,$branch) = @_; + + return [] unless $branch && $branch ne 'NO_LIBRARY_SET'; + my $dbh = C4::Context->dbh; # SELECT *,DATE_FORMAT(timestamp, '%d/%m/%Y') AS newdate my $query = q{ --