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
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.

Login

Who's Online

320 user(s) are online (193 user(s) are browsing Support Forums)


Members: 0


Guests: 320


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits