X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/7f191935501429b51d0b220ba32eda8b3a747655..f988982ad609256e3bbbb8a41ca7c7b0b3b4fb74:/widget/reply.php diff --git a/widget/reply.php b/widget/reply.php index 2bc9014..abb364c 100644 --- a/widget/reply.php +++ b/widget/reply.php @@ -16,6 +16,12 @@ if ($_POST) { if (!$query->rowCount()) { throw new Exception('Fout bij opslaan'); } + if (@list ($cat, $issue) = explode('/', $Page) and ctype_digit($issue)) { + $Db->query( + 'UPDATE issues SET updated = now() WHERE page = ? AND id = ?', + [$cat, $issue] + ); + } $_POST['reply'] = NULL; } catch (Exception $e) {