diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-01-12 16:31:48 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-12 22:41:03 +0100 |
commit | fe0dbe7fb7366b71d05e4f3b5b0ae5e42be8ee6a (patch) | |
tree | 27e05c1c850275db07e666940e8780595b4612c5 /lib/private/Session | |
parent | e4e39910f30b928abaa68ca2cd9c36937ea4857a (diff) | |
download | nextcloud-server-fe0dbe7fb7366b71d05e4f3b5b0ae5e42be8ee6a.tar.gz nextcloud-server-fe0dbe7fb7366b71d05e4f3b5b0ae5e42be8ee6a.zip |
Fix type in CryptoSessionData
Found while adding strict typing for PHP7+.
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Session')
-rw-r--r-- | lib/private/Session/CryptoSessionData.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Session/CryptoSessionData.php b/lib/private/Session/CryptoSessionData.php index 272e82ef496..530bd9063c3 100644 --- a/lib/private/Session/CryptoSessionData.php +++ b/lib/private/Session/CryptoSessionData.php @@ -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), |