Skip to content

Commit fe0dbe7

Browse files
MorrisJobkerullzer
authored andcommitted
Fix type in CryptoSessionData
Found while adding strict typing for PHP7+. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
1 parent e4e3991 commit fe0dbe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Session/CryptoSessionData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function __destruct() {
7575
}
7676

7777
protected function initializeSession() {
78-
$encryptedSessionData = $this->session->get(self::encryptedSessionName);
78+
$encryptedSessionData = $this->session->get(self::encryptedSessionName) ?: '';
7979
try {
8080
$this->sessionValues = json_decode(
8181
$this->crypto->decrypt($encryptedSessionData, $this->passphrase),

0 commit comments

Comments
 (0)