summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorFlorin Peter <github@florin-peter.de>2013-05-28 17:06:37 +0200
committerFlorin Peter <github@florin-peter.de>2013-05-28 17:06:37 +0200
commit4b4b447e2adfa383cd702b175af248900e1438fe (patch)
treed0ac182060d8fb3ba9a0a11b5376ff8cdeb35a9a /apps
parent5b7395f55b8575120ee57c6bf3f2b9c3b4f16925 (diff)
downloadnextcloud-server-4b4b447e2adfa383cd702b175af248900e1438fe.tar.gz
nextcloud-server-4b4b447e2adfa383cd702b175af248900e1438fe.zip
fixed missing convert to new session handler
Diffstat (limited to 'apps')
-rw-r--r--apps/files_encryption/lib/session.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/files_encryption/lib/session.php b/apps/files_encryption/lib/session.php
index 34913039b0c..d60c386fb1c 100644
--- a/apps/files_encryption/lib/session.php
+++ b/apps/files_encryption/lib/session.php
@@ -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;
}
-
}