[Koha-bugs] [Bug 13448] runreport.pl html email striping
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Jun 22 13:59:40 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13448
--- Comment #7 from M. Tompsett <mtompset at hotmail.com> ---
(In reply to Jonathan Druart from comment #6)
> (In reply to M. Tompsett from comment #3)
> > > + if ($count++ % 2 == 0) {
> >
> > This is an ugly coding style!
>
> What's ugly? What do you suggest?
Incrementing should be external to the modulus comparison.
$count++;
if ($count%2==1) {
This is more readable, and less likely to be misunderstood.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list