git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
issue: database insert method to keep array values
[minimedit.git]
/
widget
/
reply.php
diff --git
a/widget/reply.php
b/widget/reply.php
index 2bc9014944c69e2388905385db548943d2a21472..abb364cc1354876b078a0c0a698fc91647b098df 100644
(file)
--- a/
widget/reply.php
+++ b/
widget/reply.php
@@
-16,6
+16,12
@@
if ($_POST) {
if (!$query->rowCount()) {
throw new Exception('Fout bij opslaan');
}
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) {
$_POST['reply'] = NULL;
}
catch (Exception $e) {