diff --git a/src/Internal/Index/IndexInfo.php b/src/Internal/Index/IndexInfo.php index baf5a71f..0def070f 100644 --- a/src/Internal/Index/IndexInfo.php +++ b/src/Internal/Index/IndexInfo.php @@ -188,7 +188,11 @@ public function getDocumentSchema(): array ->where("key = 'documentSchema'") ->fetchOne(); - $this->documentSchema = Util::decodeJson($schema); + if ($schema === false) { + $this->documentSchema = []; + } else { + $this->documentSchema = Util::decodeJson($schema); + } } return $this->documentSchema;