Commit 50fc8d16561e14103727eb5d47c4500cb0bc592c

Authored by Nathanaël Jourdane
1 parent af35f9ea

bugfix #5846 epntap granules are not displayed

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
php/epntap.php
... ... @@ -166,7 +166,7 @@ function getGranules() {
166 166 $select = "SELECT TOP " . $p['limit'] . " *";
167 167 $from = "FROM " . $p['tableName'];
168 168 $where = createFilter($p['targetNames'], $p['productTypes'], $p['timeMin'], $p['timeMax']);
169   - $order = "ORDER BY " . is_null($p['sort']) ? 'granule_uid ASC' : ($p['sort'] . ' ' . $p['dir']) . " OFFSET " . $p['start'];
  169 + $order = "ORDER BY " . (is_null($p['sort']) ? 'granule_uid ASC' : ($p['sort'] . ' ' . $p['dir']) . " OFFSET " . $p['start']);
170 170 $response = request($p['url'], "$select $from $where $order");
171 171 if($response['success']) {
172 172 $visibleColumns = ['granule_gid', 'obs_id', 'dataproduct_type', 'time_min', 'time_max', 'instrument_name', 'processing_level', 'access_estsize', 'thumbnail_url', 'access_url']; // rest are hidden
... ...