Skip to content

Commit

Permalink
fixed new caches mark in search result list; updates #722
Browse files Browse the repository at this point in the history
(bug of v3.0.9)
  • Loading branch information
following5 committed Jun 16, 2015
1 parent 95805da commit 2017fd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions htdocs/lib2/search/search.html.inc.php
Expand Up @@ -31,7 +31,7 @@

function search_output()
{
global $opt, $tpl, $login, $NEWCACHES_DAYS;
global $opt, $tpl, $login;
global $enable_mapdisplay, $search_in_gm, $search_in_gm_zip;
global $called_by_search, $called_by_profile_query, $options, $lat_rad, $lon_rad, $distance_unit;
global $startat, $caches_per_page, $sql;
Expand Down Expand Up @@ -75,8 +75,8 @@ function search_output()
$rCache['desclangs'] = mb_split(',', $rCache['desc_languages']);

// decide if the cache is new
$dDiff = abs(dateDiff('d', $rCache['date_created'], date('Y-m-d')));
$rCache['isnew'] = ($dDiff <= $NEWCACHES_DAYS);
$dDiff = dateDiff('d', $rCache['date_created'], date('Y-m-d'));
$rCache['isnew'] = ($dDiff <= NEWCACHES_DAYS);

// get last logs
if ($options['sort'] != 'bymylastlog' || !$login->logged_in())
Expand Down

0 comments on commit 2017fd2

Please sign in to comment.