22 Jun
2015
22 Jun
'15
1:59 p.m.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13448 --- Comment #7 from M. Tompsett <mtompset@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.