make sure $data['mtime'] is always a timestamp
This commit is contained in:
parent
6822689e38
commit
2cf7ad8c55
1 changed files with 3 additions and 0 deletions
|
@ -643,6 +643,9 @@ abstract class Common implements Storage, ILockingStorage {
|
|||
$data = [];
|
||||
$data['mimetype'] = $this->getMimeType($path);
|
||||
$data['mtime'] = $this->filemtime($path);
|
||||
if ($data['mtime'] === false) {
|
||||
$data['mtime'] = time();
|
||||
}
|
||||
if ($data['mimetype'] == 'httpd/unix-directory') {
|
||||
$data['size'] = -1; //unknown
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue