mirror of
https://github.com/Aviortheking/DeltaCMS.git
synced 2025-07-03 02:09:17 +00:00
Fixed ttl thinking 0 was false
that was setting the TTL to the default value
This commit is contained in:
@ -42,7 +42,7 @@ class SessionCache extends AbstractCache
|
||||
}
|
||||
$_SESSION[$key] = array(
|
||||
"value" => $value,
|
||||
"ttl" => time() + ($ttl != null ? $this->getTTL($ttl) : $this->ttl)
|
||||
"ttl" => time() + ($ttl !== null ? $this->getTTL($ttl) : $this->ttl)
|
||||
);
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user