Commit fe923a9db7fa4b905098ef5832f0aeb7a44cfc61
Exists in
master
and in
111 other branches
Merge branch 'epntap' into 'master'
Epntap bugfix #5846 See merge request !7
Showing
2 changed files
with
4 additions
and
1 deletions
Show diff stats
.gitignore
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 |
... | ... |