Permalink
Browse files

Made file type iteration index independent

  • Loading branch information...
1 parent 960b283 commit 02128352ebc7e574785d2c2849fde1c87fe12b13 @timcleaver timcleaver committed with pointybeard Mar 2, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 symphony/lib/toolkit/class.fieldmanager.php
@@ -108,10 +108,10 @@ public function fetchTypes(){
}
$types = array();
-
- for($ii = 0; $ii < count($structure['filelist']); $ii++)
- $types[] = str_replace(array('field.', '.php'), '', $structure['filelist'][$ii]);
-
+
+ foreach($structure['filelist'] as $filename) {
+ $types[] = str_replace(array('field.', '.php'), '', $filename);
+ }
return $types;
}

0 comments on commit 0212835

Please sign in to comment.