@@ -, +, @@ there are no items --- Koha/Template/Plugin/KohaNews.pm | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) --- a/Koha/Template/Plugin/KohaNews.pm +++ a/Koha/Template/Plugin/KohaNews.pm @@ -45,11 +45,15 @@ sub get { my $content = &GetNewsToDisplay( $news_lang, $library ); - return { - content => $content, - location => $display_location, - blocktitle => $blocktitle - }; + if( @$content ){ + return { + content => $content, + location => $display_location, + blocktitle => $blocktitle + }; + } else { + return 0; + } } 1; --