Skip to content

Commit

Permalink
right parenthesis was missing in the if
Browse files Browse the repository at this point in the history
I only add the missing right parenthesis
  • Loading branch information
djbu authored Dec 5, 2016
1 parent d460246 commit 30f7872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion es/controllers/components.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ en tú controlador. Si ha cargado :php:class:`SessionComponent` y
public $components = array('Session', 'Cookie');

public function delete() {
if ($this->Post->delete($this->request->data('Post.id')) {
if ($this->Post->delete($this->request->data('Post.id'))) {
$this->Session->setFlash('Post deleted.');
return $this->redirect(array('action' => 'index'));
}
Expand Down

0 comments on commit 30f7872

Please sign in to comment.