diff options
author | Phie <phie@phie.ovh> | 2020-10-16 23:47:41 +0300 |
---|---|---|
committer | Phie <phie@phie.ovh> | 2020-10-16 23:47:54 +0300 |
commit | 85fd6a5ca31ccd93df23ce7d73d54b6adb99f5f3 (patch) | |
tree | e7a0d8710990e4c55fa6131a055571088e4704cf | |
parent | c4b91c736e7d360402ba44e555684aa1ca55cd5b (diff) |
transmit as real array
-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{ |