X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/7f191935501429b51d0b220ba32eda8b3a747655..c824b14c0f6fb372ca4e72fe244b3aade6c29541:/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) {