From 85fd6a5ca31ccd93df23ce7d73d54b6adb99f5f3 Mon Sep 17 00:00:00 2001 From: Phie Date: Fri, 16 Oct 2020 22:47:41 +0200 Subject: transmit as real array --- lib/Controller/NoteController.php | 6 +++--- 1 file 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{ -- cgit v1.2.3