From 20f9dbab47eaaa32c05156870e567e7c1a69de04 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Sat, 7 Jan 2012 12:32:43 +1100 Subject: [PATCH] "Marked all PMs as read" in modlog --- mod.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mod.php b/mod.php index a2dc5a42..0c443350 100644 --- a/mod.php +++ b/mod.php @@ -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");