Skip to content

Commit 6609ea7

Browse files
committed
Fixed bug in Dir::scan()
1 parent 6c969fe commit 6609ea7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# v1.0.3, 2015-11-03
2+
* Fixed bug in Dir::scan()
3+
14
# v1.0.2, 2015-10-28
25
* Added Composer support
36
* Documentation updates

Dir.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public static function scan($dir)
141141
if (is_dir($dir)&&$dh=opendir($dir)) {
142142
$f=array();
143143
while ($fn=readdir($dh)) {
144-
if ($fn!='.'&&$fn!='..'&&is_dir($dir.DS.$fn)) {
144+
if ($fn!='.'&&$fn!='..'&&is_dir($dir.'/'.$fn)) {
145145
$f[]=$fn;
146146
}
147147
}

0 commit comments

Comments
 (0)