Skip to content

Commit

Permalink
fix comment form in backend, fixes #21
Browse files Browse the repository at this point in the history
  • Loading branch information
ikkez committed Oct 4, 2018
1 parent 7d2fd21 commit d4f83d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/controller/comment.php
Expand Up @@ -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');
Expand Down

0 comments on commit d4f83d1

Please sign in to comment.