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