Fix type in CryptoSessionData

Found while adding strict typing for PHP7+.

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2018-01-12 16:31:48 +01:00 committed by Roeland Jago Douma
parent e4e39910f3
commit fe0dbe7fb7
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class CryptoSessionData implements \ArrayAccess, ISession {
}
protected function initializeSession() {
$encryptedSessionData = $this->session->get(self::encryptedSessionName);
$encryptedSessionData = $this->session->get(self::encryptedSessionName) ?: '';
try {
$this->sessionValues = json_decode(
$this->crypto->decrypt($encryptedSessionData, $this->passphrase),