diff options
author | Phie <phie@phie.ovh> | 2019-03-11 03:07:45 +0300 |
---|---|---|
committer | Phie <phie@phie.ovh> | 2019-03-11 03:08:12 +0300 |
commit | bd48507597e6454d5a5af04464b9efe2bccac1f6 (patch) | |
tree | a4ea85192f7c7cffad6b67aff28427d93df4d75a | |
parent | e37a8d10c8f0b27a779ce947cf27e2db0e752795 (diff) |
catch zip exceptionv0.13.5
-rwxr-xr-x | lib/Controller/NoteController.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/Controller/NoteController.php b/lib/Controller/NoteController.php index cb78e8c..7eb563d 100755 --- a/lib/Controller/NoteController.php +++ b/lib/Controller/NoteController.php @@ -445,9 +445,13 @@ try{ if(!array_key_exists($path, $metadataFromCache)){ $utils = new NoteUtils(); - $meta = $utils->getMetadata($this->CarnetFolder, $path); - $array[$path] = $meta; - $cache->addToCache($path, $meta, $meta['lastmodfile']); + try{ + $meta = $utils->getMetadata($this->CarnetFolder, $path); + $array[$path] = $meta; + $cache->addToCache($path, $meta, $meta['lastmodfile']); + } catch(\PhpZip\Exception\ZipException $e){ + + } } } catch(\OCP\Files\NotFoundException $e) { } |