X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/ee182f5f4ab8a688284a02e534ec555e5c3093ba..d634e557c4fbdb23d054be46377da7cafb68d7f4:/widget/reply.php diff --git a/widget/reply.php b/widget/reply.php index 7e0ec1e..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 '
%2$s' : - (!isset($change->value) ? 'verwijderd (
%snaar
%s'), $change->old_value, $change->value ) @@ -103,10 +103,10 @@ while ($row = $query->fetch()) { print "\n"; } -if ($User) { +if ($User->login) { print '