Skip to content

Commit

Permalink
Update GetContent.php
Browse files Browse the repository at this point in the history
fix #143
  • Loading branch information
ctf0 authored Mar 26, 2020
1 parent 9521b9c commit 07dcdbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App/Controllers/Modules/GetContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ protected function getData($dir)
// folders
foreach ($storageFolders as $folder) {
$path = $folder['path'];
$time = $folder['timestamp'];
$time = $folder['timestamp'] ?? 0;

if ($this->GFI) {
$info = $this->getFolderInfoFromList($this->getFolderContent($path, true));
Expand All @@ -73,7 +73,7 @@ protected function getData($dir)
// files
foreach ($storageFiles as $file) {
$path = $file['path'];
$time = $file['timestamp'];
$time = $file['timestamp'] ?? 0;

$list[] = [
'name' => $file['basename'],
Expand Down

0 comments on commit 07dcdbb

Please sign in to comment.