X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/bb34842b36ded0bbe7e6f51294ad3d20c8d470da..772961fd4e9be46ad340cad1e55ee5f28cc5b968:/widget/reply.php diff --git a/widget/reply.php b/widget/reply.php index 3984349..ca38ce9 100644 --- a/widget/reply.php +++ b/widget/reply.php @@ -21,7 +21,7 @@ if ($_POST) { } } $query = $Db->set('comments', [ - 'page' => $Page, + 'page' => $Page->handler, 'message' => $html, 'author' => $User->login, ]); @@ -68,7 +68,7 @@ if ($_POST) { } $cols = '*, (SELECT json_agg(journal.*) FROM journal WHERE comment_id = comments.id) AS journal'; -$query = $Db->query("SELECT $cols FROM comments WHERE page = ? ORDER BY created", [$Page]); +$query = $Db->query("SELECT $cols FROM comments WHERE page = ? ORDER BY created", [$Page->handler]); print '