summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-01-07 15:47:52 +1100
committerMichael Save <savetheinternet@tinyboard.org>2012-01-07 15:47:52 +1100
commit046b6cfebf3954a18f1742cca2a8ebd890798c3c (patch)
tree5a0f02e0bdf95bb3907bcb47432321de1d302cfa
parentec5c421ff9babd8c2285b727f53514dd033436f7 (diff)
allow users without "mod log" permissions to at least see the time when a mod was last active
-rw-r--r--mod.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/mod.php b/mod.php
index e8423f46..b2b464ad 100644
--- a/mod.php
+++ b/mod.php
@@ -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">' .