Skip to content
Permalink
Browse files

#3970 nicht eingeloggt: Entfernungsspalte bei Suche ausblenden

  • Loading branch information...
following
following committed Jul 23, 2012
1 parent 86d54b9 commit bdeb6192f203b881156dc672bebd3735e70603e6
Showing with 7 additions and 3 deletions.
  1. +7 −3 htdocs/lib/search.html.inc.php
@@ -59,7 +59,7 @@
{
if ($usr === false)
{
$sql .= '0 distance, ';
$sql .= 'NULL distance, ';
}
else
{
@@ -69,7 +69,7 @@
if ((($record_coords['latitude'] == NULL) || ($record_coords['longitude'] == NULL)) || (($record_coords['latitude'] == 0) || ($record_coords['longitude'] == 0)))
{
$sql .= '0 distance, ';
$sql .= 'NULL distance, ';
}
else
{
@@ -232,9 +232,13 @@
$tmpline = mb_ereg_replace('{urlencode_cacheid}', htmlspecialchars(urlencode($caches_record['cache_id']), ENT_COMPAT, 'UTF-8'), $tmpline);
$tmpline = mb_ereg_replace('{urlencode_userid}', htmlspecialchars(urlencode($caches_record['user_id']), ENT_COMPAT, 'UTF-8'), $tmpline);
$tmpline = mb_ereg_replace('{username}', htmlspecialchars($caches_record['username'], ENT_COMPAT, 'UTF-8'), $tmpline);
$tmpline = mb_ereg_replace('{distance}', htmlspecialchars(sprintf("%01.1f", $caches_record['distance']), ENT_COMPAT, 'UTF-8'), $tmpline);
$tmpline = mb_ereg_replace('{position}', $nRowIndex + $startat + 1, $tmpline);
if ($caches_record['distance'] == NULL)
$tmpline = mb_ereg_replace('{distance}', '', $tmpline);
else
$tmpline = mb_ereg_replace('{distance}', htmlspecialchars(sprintf("%01.1f", $caches_record['distance']), ENT_COMPAT, 'UTF-8'), $tmpline);
// backgroundcolor of line
if (($nRowIndex % 2) == 1) $bgcolor = $bgcolor2;
else $bgcolor = $bgcolor1;

0 comments on commit bdeb619

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