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-04-08 01:30:22 +0300
committerPhie <phie@phie.ovh>2019-04-08 01:30:22 +0300
commit0fd5ee3074a6938e9e87f8df24c9d9659cc3cbd4 (patch)
treee2b8d3c3ef10f4393e971c686549867e70379f8a
parent6525105f8230649c11805cccc4732623a21ada27 (diff)
cache wasn't enable
-rwxr-xr-xlib/Controller/NoteController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/NoteController.php b/lib/Controller/NoteController.php
index 0b7dfa7..752f4e3 100755
--- a/lib/Controller/NoteController.php
+++ b/lib/Controller/NoteController.php
@@ -489,19 +489,19 @@
/**
* @NoAdminRequired
+ * @NoCSRFRequired
*/
public function getMetadata($paths){
$array = array();
$pathsAr = explode(",",$paths);
$cache = new CacheManager($this->db, $this->CarnetFolder);
$metadataFromCache = $cache->getFromCache($pathsAr);
-
foreach($pathsAr as $path){
if(empty($path))
continue;
try{
- if(!array_key_exists($this->CarnetFolder->getFullPath($path), $metadataFromCache) OR True){
+ if(!array_key_exists($this->CarnetFolder->getFullPath($path), $metadataFromCache)){
$utils = new NoteUtils();
try{
$meta = $utils->getMetadata($this->CarnetFolder, $path);