$iterator->isfirst při $width==1 chybuje

hrtlik
Člen | 7
+
0
-

Kód isFirst()

<?php
return $width === NULL ? $this->counter === 1 : ($this->counter % $width) === 1;
?>

Měl by být třeba:

<?php
$compare = (int)($width>1);
return $width === NULL ? $this->counter === 1 : ($this->counter % $width) === $compare;
?>
David Grudl
founder | 8310
+
0
-

fixed

RSS tématu Téma zavřeno