Skip to content
Permalink
Browse files

repaired child waypoint flag in GPX export; fixes #980

  • Loading branch information...
following5 committed Jun 1, 2016
1 parent 17305e0 commit cd63769e3f7860f61cc918dde9ba2f7e86046b91
Showing with 4 additions and 2 deletions.
  1. +4 −2 htdocs/lib2/search/search.gpx.inc.php
@@ -168,10 +168,12 @@ function search_output()
$childwphandler = new ChildWp_Handler();
$children='';
$rs = sql('SELECT &searchtmp.`cache_id` `cacheid` FROM &searchtmp');
while ($r = sql_fetch_array($rs) && $children == '')
while ($r = sql_fetch_array($rs))
{
if (count($childwphandler->getChildWps($r['cacheid'])))
if (count($childwphandler->getChildWps($r['cacheid']))) {
$children = ' (HasChildren)';
break;
}
}
mysql_free_result($rs);

0 comments on commit cd63769

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