mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-16 07:48:09 +02:00
session_timeout_duration make crash when no data
This commit is contained in:
parent
fc6cd59ea0
commit
4434e7d217
1 changed files with 4 additions and 2 deletions
|
@ -13,7 +13,9 @@ class Admin
|
|||
{
|
||||
global $db_pass, $config;
|
||||
$enable_session_timeout = $config['enable_session_timeout'];
|
||||
if ($enable_session_timeout) {
|
||||
$session_timeout_duration = intval($config['session_timeout_duration']) * 60; // Convert minutes to seconds
|
||||
}
|
||||
|
||||
if (isset($_SESSION['aid']) && isset($_SESSION['aid_expiration']) && $_SESSION['aid_expiration'] > time()) {
|
||||
return $_SESSION['aid'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue