diff options
Diffstat (limited to 'lib/Controller/NoteController.php')
-rwxr-xr-x | lib/Controller/NoteController.php | 6 |
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{ |