allow users without "mod log" permissions to at least see the time when a mod was last active

This commit is contained in:
Michael Save 2012-01-07 15:47:52 +11:00
parent ec5c421ff9
commit 046b6cfebf

View File

@ -1048,11 +1048,11 @@
'</td>' .
'<td>' .
(hasPermission($config['mod']['modlog']) ?
($_mod['last'] ?
($_mod['last'] ?
(hasPermission($config['mod']['modlog']) ?
'<span title="' . str_replace('"', '&quot;', utf8tohtml($_mod['action'])) . '">' . ago($_mod['last']) . '</span>'
: '<em>never</em>')
: '-') .
: ago($_mod['last']))
: '<em>never</em>') .
'</td>' .
'<td style="white-space:nowrap">' .