joomla/joomla-platform — pull request #1531 by mahagr (2012-09-15 17:39:08+00:00)
Title: Fix potentially broken code in JPagination

Potential endless loop by setting $i=0 inside for statement. It's though much more likely that the code has no effect at all (I think it's always setting $i = $i), but even then it's probably a typo and will cause issues if the if statement gets changed at some point.

See also:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=29197