From 50fc8d16561e14103727eb5d47c4500cb0bc592c Mon Sep 17 00:00:00 2001 From: Nathanaƫl Jourdane <nathanael.jourdane@irap.omp.eu> Date: Wed, 14 Feb 2018 14:58:39 +0100 Subject: [PATCH] bugfix #5846 epntap granules are not displayed --- php/epntap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/epntap.php b/php/epntap.php index df37a27..4e9080a 100644 --- a/php/epntap.php +++ b/php/epntap.php @@ -166,7 +166,7 @@ function getGranules() { $select = "SELECT TOP " . $p['limit'] . " *"; $from = "FROM " . $p['tableName']; $where = createFilter($p['targetNames'], $p['productTypes'], $p['timeMin'], $p['timeMax']); - $order = "ORDER BY " . is_null($p['sort']) ? 'granule_uid ASC' : ($p['sort'] . ' ' . $p['dir']) . " OFFSET " . $p['start']; + $order = "ORDER BY " . (is_null($p['sort']) ? 'granule_uid ASC' : ($p['sort'] . ' ' . $p['dir']) . " OFFSET " . $p['start']); $response = request($p['url'], "$select $from $where $order"); if($response['success']) { $visibleColumns = ['granule_gid', 'obs_id', 'dataproduct_type', 'time_min', 'time_max', 'instrument_name', 'processing_level', 'access_estsize', 'thumbnail_url', 'access_url']; // rest are hidden -- libgit2 0.21.2