X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/ee182f5f4ab8a688284a02e534ec555e5c3093ba..2bed41fd9817049d5f8822e381c4f70cc3bf33c8:/widget/reply.php diff --git a/widget/reply.php b/widget/reply.php index 7e0ec1e..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 '