Clean Expires
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
This commit is contained in:
parent
df69a7a4a3
commit
2cd445d201
12 changed files with 106 additions and 121 deletions
|
|
@ -173,13 +173,8 @@ class PageController extends Controller {
|
|||
return new TemplateResponse('forms', 'no.acc.tmpl', []);
|
||||
}
|
||||
|
||||
if ($form->getExpiresTimestamp() === 0) {
|
||||
$expired = false;
|
||||
} else {
|
||||
$expired = time() > $form->getExpiresTimestamp();
|
||||
}
|
||||
|
||||
if ($expired) {
|
||||
// If form expired, return Expired-Template
|
||||
if ( ($form->getExpires() !== 0) && (time() > $form->getExpires()) ) {
|
||||
return new TemplateResponse('forms', 'expired.tmpl');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue