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');