http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7567

--- Comment #36 from M. Tompsett <[email protected]> ---
Created attachment 23553
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=23553&action=edit
Bug 7567 - Undefined $lang triggers warning

Changed:
    $template->param(
        $lang           => 1,
        opac_news       => $opac_news,
        opac_news_count => $opac_news_count,
                );
Into:
    $template->param(
        opac_news       => $opac_news,
        opac_news_count => $opac_news_count,
                );
    $template->param( $lang => 1 ) if $lang;

Because $lang is not defined when you come immediately into
Home -> Tools -> News.

TEST PLAN
---------
1) log into staff client
2) Tools -> News
3) Check koha error log
   - Expecting to see an error like:
koha-news.pl: Problem = a value of 1 has been passed to param without key
4) Apply patch
5) Home -> Tools -> News
6) Check koha error log
   - No error generated

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to