X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/d33a85fd3d187d76fd86f891bba2d9fe17a035a0..f988982ad609256e3bbbb8a41ca7c7b0b3b4fb74:/widget/reply.php diff --git a/widget/reply.php b/widget/reply.php index 6fc1fa5..abb364c 100644 --- a/widget/reply.php +++ b/widget/reply.php @@ -1,5 +1,5 @@ Reacties'."\n"; @@ -16,10 +16,16 @@ 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) { - print '

Antwoord niet opgeslagen.

'."\n\n"; + print "

Antwoord niet opgeslagen: {$e->getMessage()}.

\n\n"; } }