View | Details | Raw Unified | Return to bug 24745
Collapse All | Expand All

(-)a/Koha/Template/Plugin/KohaNews.pm (-6 / +9 lines)
Lines 45-55 sub get { Link Here
45
45
46
    my $content = &GetNewsToDisplay( $news_lang, $library );
46
    my $content = &GetNewsToDisplay( $news_lang, $library );
47
47
48
    return {
48
    if( @$content ){
49
        content => $content,
49
        return {
50
        location => $display_location,
50
            content => $content,
51
        blocktitle => $blocktitle
51
            location => $display_location,
52
    };
52
            blocktitle => $blocktitle
53
        };
54
    } else {
55
        return 0;
56
    }
53
}
57
}
54
58
55
1;
59
1;
56
- 

Return to bug 24745