mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-06-26 19:48:35 +02:00
critical fix operand when save settings
This commit is contained in:
parent
608c9e5b6f
commit
fc6cd59ea0
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ class Admin
|
||||||
{
|
{
|
||||||
global $db_pass, $config;
|
global $db_pass, $config;
|
||||||
$enable_session_timeout = $config['enable_session_timeout'];
|
$enable_session_timeout = $config['enable_session_timeout'];
|
||||||
$session_timeout_duration = $config['session_timeout_duration'] * 60; // Convert minutes to seconds
|
$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()) {
|
if (isset($_SESSION['aid']) && isset($_SESSION['aid_expiration']) && $_SESSION['aid_expiration'] > time()) {
|
||||||
return $_SESSION['aid'];
|
return $_SESSION['aid'];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue