mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-30 03:24:47 +00:00
Set expiry to null when we get told 'infinity' for the timeout.
This commit is contained in:
parent
2589fdc237
commit
8ab5d8a404
@ -68,6 +68,9 @@ if ( preg_match( '{^([a-z]+)-(\d+)$}i', $ticket_timeout, $matches ) ) {
|
|||||||
/** It isn't specified, but timeout seems to be 'unit-number' like 'Seconds-3600', so we make it '3600 Seconds' which PostgreSQL understands */
|
/** It isn't specified, but timeout seems to be 'unit-number' like 'Seconds-3600', so we make it '3600 Seconds' which PostgreSQL understands */
|
||||||
$sql_timeout = $matches[2] . ' ' . $matches[1];
|
$sql_timeout = $matches[2] . ' ' . $matches[1];
|
||||||
}
|
}
|
||||||
|
else if ( $ticket_timeout == 'infinity' ) {
|
||||||
|
$sql_timeout = null;
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
$sql_timeout = $ticket_timeout;
|
$sql_timeout = $ticket_timeout;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user