Index: trunk/phase3/includes/filerepo/FileRepo.php |
— | — | @@ -163,7 +163,7 @@ |
164 | 164 | */ |
165 | 165 | function findFiles( $items ) { |
166 | 166 | $result = array(); |
167 | | - foreach ( $items as $index => $item ) { |
| 167 | + foreach ( $items as $item ) { |
168 | 168 | if ( is_array( $item ) ) { |
169 | 169 | $title = $item['title']; |
170 | 170 | $options = $item; |
— | — | @@ -173,8 +173,9 @@ |
174 | 174 | $options = array(); |
175 | 175 | } |
176 | 176 | $file = $this->findFile( $title, $options ); |
177 | | - if ( $file ) |
| 177 | + if ( $file ) { |
178 | 178 | $result[$file->getTitle()->getDBkey()] = $file; |
| 179 | + } |
179 | 180 | } |
180 | 181 | return $result; |
181 | 182 | } |