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