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

--- Comment #7 from M. Tompsett <[email protected]> ---
(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.
_______________________________________________
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