X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/390f24390894684c6f6d4f70261883e6d828502d..caa254384466d5f8477de38fcf7492a1ecd3f938:/widget/reply.php diff --git a/widget/reply.php b/widget/reply.php index 3984349..d305fc7 100644 --- a/widget/reply.php +++ b/widget/reply.php @@ -21,7 +21,7 @@ if ($_POST) { } } $query = $Db->set('comments', [ - 'page' => $Page, + 'page' => $Page->link, '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->link]); print '