diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-01-07 12:32:43 +1100 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-01-07 12:32:43 +1100 |
| commit | 20f9dbab47eaaa32c05156870e567e7c1a69de04 (patch) | |
| tree | 07786785a02705e6f4e138057a73c949cd8efbc1 /mod.php | |
| parent | 71b74b0fced53d87ca25508971d9699be6371390 (diff) | |
"Marked all PMs as read" in modlog
Diffstat (limited to 'mod.php')
| -rw-r--r-- | mod.php | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -712,6 +712,8 @@ $query->bindValue(':id', $mod['id'], PDO::PARAM_INT); $query->execute() or error(db_error($query)); + modLog('Marked all PMs as read'); + header('Location: ?/inbox', true, $config['redirect_http']); } elseif(preg_match('/^\/inbox$/', $query, $match)) { $query = prepare("SELECT `unread`,`pms`.`id`, `time`, `sender`, `to`, `message`, `username` FROM `pms` LEFT JOIN `mods` ON `mods`.`id` = `sender` WHERE `to` = :mod ORDER BY `unread` DESC, `time` DESC"); |
