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:
-rwxr-xr-xlib/Controller/NoteController.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Controller/NoteController.php b/lib/Controller/NoteController.php
index d7c47d3..e336dfa 100755
--- a/lib/Controller/NoteController.php
+++ b/lib/Controller/NoteController.php
@@ -588,11 +588,11 @@ public function getOpusEncoder(){
* @NoCSRFRequired
*/
public function getMetadata($paths){
- $array = array();
- $pathsAr = explode(",",$paths);
+ $array = array();
$cache = new CacheManager($this->db, $this->CarnetFolder);
$metadataFromCache = $cache->getFromCache($pathsAr);
- foreach($pathsAr as $path){
+ foreach($paths as $path){
+
if(empty($path))
continue;
try{