Skip to content

Commit e11fdfd

Browse files
committed
fix(generateQuer): replace count() with isset() and remove json_encode call on ->subQuery
1 parent 54a7dc2 commit e11fdfd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Support/Utility.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ public static function generateQuery($query = array())
205205
$query->_query['environment'] = $query->contentType
206206
->stack->getEnvironment();
207207
$subQuery = array();
208-
if (count($query->subQuery) > 0) {
209-
$subQuery['query'] = json_encode($query->subQuery);
208+
if (isset($query->subQuery)) {
209+
$subQuery['query'] = $query->subQuery;
210210
}
211211

212212
$include_schema = array_search(

0 commit comments

Comments
 (0)