mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-21 17:06:28 +02:00
validate contact
This commit is contained in:
parent
46ebd39c04
commit
4050dce290
3 changed files with 7 additions and 7 deletions
|
@ -45,7 +45,7 @@ namespace controllers\publics;
|
|||
{
|
||||
$page = (int) $page;
|
||||
$contacts = $this->internal_contact->list(25, $page);
|
||||
$this->render('contact/list', ['contacts' => $contacts]);
|
||||
return $this->render('contact/list', ['contacts' => $contacts]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -70,9 +70,7 @@ namespace controllers\publics;
|
|||
$this->internal_contact->delete($id);
|
||||
}
|
||||
|
||||
$this->redirect(\descartes\Router::url('Contact', 'list'));
|
||||
|
||||
return true;
|
||||
return $this->redirect(\descartes\Router::url('Contact', 'list'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue