Skip to content

Commit cf5020e

Browse files
committed
make PHP5.3 compatible
1 parent 2841280 commit cf5020e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

index.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,12 @@ function checkWritePermissions()
151151
$iterator = new \RecursiveIteratorIterator($directory, RecursiveIteratorIterator::CHILD_FIRST);
152152
$files = array();
153153
foreach ($iterator as $info) {
154-
if (!is_writable($info->getRealPath())) {
155-
if (!empty($info->getRealPath())) {
156-
$files[] = $info->getRealPath();
157-
}
154+
$path = $info->getRealPath();
155+
if (!is_writable($path) && !empty($path)) {
156+
$files[] = $path;
158157
}
159158
}
160-
161159
return $files;
162-
163160
}
164161

165162
/**

0 commit comments

Comments
 (0)