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

Srdjan Jankovic <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #10 from Srdjan Jankovic <[email protected]> ---
I believe it would be slightly better to write

my $userenv = C4::Context->userenv or carp(...);
return C4::Context->userenv->{flags} % 2 == 1;

It saves one C4::Context->userenv call.

I admire this kind of work, having C4::Context->userenv->{flags} % 2 != 1 all
over the place is just scandalous.

-- 
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