Skip to content

Commit c04429d

Browse files
authored
Merge pull request #488 from jjrom/develop
Correct issue on POST /search on bbox
2 parents 993879f + f6f4d44 commit c04429d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/resto/core/RestoConstants.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class RestoConstants
2020
// [IMPORTANT] Starting resto 7.x, default routes are defined in RestoRouter class
2121

2222
// resto version
23-
const VERSION = '9.5.7';
23+
const VERSION = '9.5.8';
2424

2525
/* ============================================================
2626
* NEVER EVER TOUCH THESE VALUES

app/resto/core/api/STACAPI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1565,7 +1565,7 @@ private function jsonQueryToKVP($jsonQuery)
15651565
* Input bbox should be an array of 4 floats
15661566
*/
15671567
if ( isset($jsonQuery['bbox']) ) {
1568-
if ( is_array($jsonQuery['bbox']) || count($jsonQuery['bbox']) !== 4 ) {
1568+
if ( !is_array($jsonQuery['bbox']) || count($jsonQuery['bbox']) !== 4 ) {
15691569
RestoLogUtil::httpError(400, 'Invalid bbox parameter. Should be an array of 4 coordinates');
15701570
}
15711571
$params['bbox'] = join(',', $jsonQuery['bbox']);

0 commit comments

Comments
 (0)