From d4f83d11d1451aeef1997d116ba303f27f7bb5b5 Mon Sep 17 00:00:00 2001 From: ikkez Date: Thu, 4 Oct 2018 16:54:38 +0200 Subject: [PATCH] fix comment form in backend, fixes #21 --- app/controller/comment.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controller/comment.php b/app/controller/comment.php index e39f405..996087e 100644 --- a/app/controller/comment.php +++ b/app/controller/comment.php @@ -49,8 +49,9 @@ public function getSingle(\Base $f3,$params) { $this->response->data['SUBPART'] = 'comment_edit.html'; if (isset($params['id'])) { - $this->response->data['comment'] = $this->resource->load(array('_id = ?',$params['id'])); - if(!$this->resource->dry()) + $this->resource->load(array('_id = ?',$params['id'])); + $this->response->data['comment'] = $this->resource; + if (!$this->resource->dry()) return true; } \Flash::instance()->addMessage('Unknown Comment ID', 'danger');