Skip to content
Permalink
Browse files

always set GPX attribute 'Park and grab' for Drive-In caches; updates…

… #1136
  • Loading branch information...
following5 committed Sep 26, 2017
1 parent d993c3e commit 13d8fca9cfe30fb8f7ac139d0f32cd662aed2b3a
Showing with 10 additions and 2 deletions.
  1. +10 −2 htdocs/lib2/search/search.gpx.inc.php
@@ -433,13 +433,21 @@ function search_output()
$thisline = mb_ereg_replace('{logs}', $logentries, $thisline);
// attributes
$addAttributes = [-1]; // dummy
if ($r['type'] == 10) { // Drive-in
$addAttributes[] = 24; // near the car / park and grab
}
$rsAttributes = sql_slave(
'
"
SELECT `gc_id`, `gc_inc`, `gc_name`
FROM `caches_attributes`
INNER JOIN `cache_attrib`
ON `cache_attrib`.`id`=`caches_attributes`.`attrib_id`
WHERE `caches_attributes`.`cache_id`=&1',
WHERE `caches_attributes`.`cache_id`='&1'
UNION
SELECT `gc_id`, `gc_inc`, `gc_name`
FROM `cache_attrib`
WHERE `id` IN ('" . implode("','", array_map(sql_escape, $addAttributes)) . "')",
$r['cacheid']
);
$gc_ids = [];

0 comments on commit 13d8fca

Please sign in to comment.
You can’t perform that action at this time.