Index: trunk/phase3/includes/installer/Installer.php |
— | — | @@ -1198,11 +1198,14 @@ |
1199 | 1199 | } |
1200 | 1200 | |
1201 | 1201 | $exts = array(); |
1202 | | - $dir = $this->getVar( 'IP' ) . '/extensions'; |
1203 | | - $dh = opendir( $dir ); |
| 1202 | + $extDir = $this->getVar( 'IP' ) . '/extensions'; |
| 1203 | + $dh = opendir( $extDir ); |
1204 | 1204 | |
1205 | 1205 | while ( ( $file = readdir( $dh ) ) !== false ) { |
1206 | | - if( file_exists( "$dir/$file/$file.php" ) ) { |
| 1206 | + if( !is_dir( "$extDir/$file" ) ) { |
| 1207 | + continue; |
| 1208 | + } |
| 1209 | + if( file_exists( "$extDir/$file/$file.php" ) ) { |
1207 | 1210 | $exts[] = $file; |
1208 | 1211 | } |
1209 | 1212 | } |