Skip to content

Commit ea6c6ff

Browse files
committed
avoid getting stuck on empty entry
1 parent 27ab733 commit ea6c6ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ function checkWritePermissions()
148148
$files = array();
149149
foreach ($iterator as $info) {
150150
if (!is_writable($info->getRealPath())) {
151-
$files[] = $info->getRealPath();
151+
if (!empty($info->getRealPath())) {
152+
$files[] = $info->getRealPath();
153+
}
152154
}
153155
}
154156

0 commit comments

Comments
 (0)