Skip to content
Permalink
Browse files

fixed new caches mark in search result list; updates #722

(bug of v3.0.9)
  • Loading branch information...
following5 committed Jun 16, 2015
1 parent 95805da commit 2017fd2027a6ef1d525a9b3c1e466a1db8a066d5
Showing with 3 additions and 3 deletions.
  1. +3 −3 htdocs/lib2/search/search.html.inc.php
@@ -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;
@@ -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())

0 comments on commit 2017fd2

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