Handle Empty $dirs Array
This commit is contained in:
parent
9b10de412e
commit
dcce7db043
1 changed files with 2 additions and 1 deletions
|
@ -76,7 +76,8 @@ if (isset($_GET['f'])) {
|
|||
// Sort and Reverse Filelist
|
||||
natcasesort($files);
|
||||
$files = array_reverse($files);
|
||||
$files = array_merge($dirs, $files);
|
||||
if (!empty($dirs))
|
||||
$files = array_merge($dirs, $files);
|
||||
|
||||
// Get Files for current Page
|
||||
$curfiles = array_slice($files, ($page-1)*$slice ,$slice, true);
|
||||
|
|
Loading…
Reference in a new issue