issue: database insert method to keep array values
[minimedit.git] / widget / reply.php
index 2bc9014944c69e2388905385db548943d2a21472..abb364cc1354876b078a0c0a698fc91647b098df 100644 (file)
@@ -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) {