Merge pull request #7824 from nextcloud/fix-type-in-CryptoSessionData

Fix type in CryptoSessionData
This commit is contained in:
Morris Jobke 2018-01-13 00:01:52 +01:00 committed by GitHub
commit 16f4d71efd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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),