Bug #15682 » dir_bug.diff
typo3/class.file_list.inc 2008-08-29 22:00:16.000000000 +0200 | ||
---|---|---|
$d = @dir($path);
|
||
$tempArray=Array();
|
||
if (is_object($d)) {
|
||
while($entry=$d->read()) {
|
||
while(false !== ($entry=$d->read())) {
|
||
if ($entry!='.' && $entry!='..') {
|
||
$wholePath = $path.'/'.$entry; // Because of odd PHP-error where <br />-tag is sometimes placed after a filename!!
|
||
if (@file_exists($wholePath) && (!$type || t3lib_div::inList($type,filetype($wholePath)))) {
|