Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CarnetApp/CarnetNextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhie <phie@phie.ovh>2019-03-11 03:07:45 +0300
committerPhie <phie@phie.ovh>2019-03-11 03:08:12 +0300
commitbd48507597e6454d5a5af04464b9efe2bccac1f6 (patch)
treea4ea85192f7c7cffad6b67aff28427d93df4d75a
parente37a8d10c8f0b27a779ce947cf27e2db0e752795 (diff)
catch zip exceptionv0.13.5
-rwxr-xr-xlib/Controller/NoteController.php10
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) {
}