From: <du...@us...> - 2012-12-12 12:38:25
|
Revision: 10368 http://sourceforge.net/p/xoops/svn/10368 Author: dugris Date: 2012-12-12 12:38:22 +0000 (Wed, 12 Dec 2012) Log Message: ----------- Fix : userinfo search post Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/system_userinfo.html XoopsCore/branches/2.6.x/2.6.0/htdocs/userinfo.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/system_userinfo.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/system_userinfo.html 2012-12-12 06:28:17 UTC (rev 10367) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/system_userinfo.html 2012-12-12 12:38:22 UTC (rev 10368) @@ -190,7 +190,9 @@ <li> <img src="<{$result.image}>" alt="<{$module.name}>" /> <strong><a href="<{$result.link}>" title="<{$result.title}>"><{$result.title}></a></strong><br /> + <{if $result.time}> <span class="x-small">(<{$result.time}>)</span> + <{/if}> </li> <{/foreach}> <!-- end results item loop --> Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/userinfo.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/userinfo.php 2012-12-12 06:28:17 UTC (rev 10367) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/userinfo.php 2012-12-12 12:38:22 UTC (rev 10368) @@ -184,7 +184,9 @@ } $results[$i]['title'] = $myts->htmlspecialchars($results[$i]['title']); - $results[$i]['time'] = $results[$i]['time'] ? XoopsLocal::formatTimestamp($results[$i]['time']) : ''; + if (!empty($results[$i]['time'])) { + $results[$i]['time'] = $results[$i]['time'] ? XoopsLocal::formatTimestamp($results[$i]['time']) : ''; + } } if ($count == 5) { $showall_link = '<a href="search.php?action=showallbyuser&mid=' . $mid . '&uid=' . $thisUser->getVar('uid') . '">' . _US_SHOWALL . '</a>'; |