diff --git a/src/DeltaCMS/Cache/SessionCache.php b/src/DeltaCMS/Cache/SessionCache.php index 2b5b4ab..888460d 100644 --- a/src/DeltaCMS/Cache/SessionCache.php +++ b/src/DeltaCMS/Cache/SessionCache.php @@ -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; }