diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2019-07-13 19:23:50 +0300 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2019-07-13 19:23:50 +0300 |
commit | 7b8c84754a2db5c6bcb46c361fe0c8ee244a9571 (patch) | |
tree | 0e279633cd1ab37fc5957fb939ae9bbe03ce3d43 | |
parent | 5de368bc3971127e65337e33841a15a15ea7ba4f (diff) |
use getArray to parse imported json
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-rw-r--r-- | lib/Db/IndexesRequestBuilder.php | 2 |
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)); |