Skip to content

Commit

Permalink
Fix for PHP 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
yama committed Aug 8, 2018
1 parent d016853 commit 20781ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions manager/includes/cache_sync.class.php
Expand Up @@ -481,10 +481,10 @@ function tableOpt()

function getFileList($dir, $pattern='@\.php$@') {
$dir = rtrim($dir, '/');
$tmp = array_diff(scandir($dir),['..','.']);
$files = [];
foreach($tmp as $val){
$files[] = $dir . '/' . $val;
$tmp = array_diff(scandir($dir),array('..','.'));
$files = array();
foreach($tmp as $val){
$files[] = $dir . '/' . $val;
}

$list = array();
Expand Down

0 comments on commit 20781ce

Please sign in to comment.