mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 22:27:31 -04:00
fixed missing convert to new session handler
This commit is contained in:
parent
5b7395f55b
commit
4b4b447e2a
1 changed files with 2 additions and 3 deletions
|
|
@ -150,12 +150,11 @@ class Session
|
|||
*/
|
||||
public function getPublicSharePrivateKey() {
|
||||
|
||||
if (isset($_SESSION['publicSharePrivateKey']) && !empty($_SESSION['publicSharePrivateKey'])) {
|
||||
return $_SESSION['publicSharePrivateKey'];
|
||||
if (!is_null( \OC::$session->get('publicSharePrivateKey') )) {
|
||||
return \OC::$session->get('publicSharePrivateKey');
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue