1
ghia
preferences nested loop
  • 2009/11/12 17:46

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


A report on XOOPS France made me thinking.

In modules/system/admin/preferences/main.php, there is some kind of nested loop
le="color: #000000"><?php for ($i = 0; $i < $count; $i++) { ... for ($i = 0; $i < $dcount; $i++) { ... foreach (array_keys($imagefiles) as $i) {
and reuse of the variable $i .
Is that correct?
In 2.2.x code there was a foreach in stead of the first for loop, that way, the $i variable was not affected.