Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/fulltextsearch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-07-13 19:23:50 +0300
committerMaxence Lange <maxence@artificial-owl.com>2019-07-13 19:23:50 +0300
commit7b8c84754a2db5c6bcb46c361fe0c8ee244a9571 (patch)
tree0e279633cd1ab37fc5957fb939ae9bbe03ce3d43
parent5de368bc3971127e65337e33841a15a15ea7ba4f (diff)
use getArray to parse imported json
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-rw-r--r--lib/Db/IndexesRequestBuilder.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Db/IndexesRequestBuilder.php b/lib/Db/IndexesRequestBuilder.php
index 0fb32f4..5b21a8f 100644
--- a/lib/Db/IndexesRequestBuilder.php
+++ b/lib/Db/IndexesRequestBuilder.php
@@ -120,7 +120,7 @@ class IndexesRequestBuilder extends CoreRequestBuilder {
->setSource($this->get('source', $data, ''))
->setOwnerId($this->get('owner_id', $data, ''))
->setLastIndex($this->getInt('indexed', $data, 0));
- $index->setOptions(json_decode($data['options'], true));
+ $index->setOptions($this->getArray('options', $data, []));
$index->setErrorCount($this->getInt('err', $data, 0));
$index->setErrors(json_decode($data['message'], true));