summaryrefslogtreecommitdiffstats
path: root/lib/private/files/stream
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-04-01 13:59:29 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-04-07 13:30:30 +0200
commitcac83642f2df98497ecedcded1716c28fa676313 (patch)
tree4ac7401d90eea42ec970919d59f19f9c81ef9d60 /lib/private/files/stream
parentd203296e3514e5d987942f71fc80421a55ec477a (diff)
downloadnextcloud-server-cac83642f2df98497ecedcded1716c28fa676313.tar.gz
nextcloud-server-cac83642f2df98497ecedcded1716c28fa676313.zip
Finally fixing encryption with public share
Diffstat (limited to 'lib/private/files/stream')
-rw-r--r--lib/private/files/stream/encryption.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/stream/encryption.php b/lib/private/files/stream/encryption.php
index a96d573723c..88957825de0 100644
--- a/lib/private/files/stream/encryption.php
+++ b/lib/private/files/stream/encryption.php
@@ -198,7 +198,7 @@ class Encryption extends Wrapper {
$context = parent::loadContext($name);
foreach ($this->expectedContextProperties as $property) {
- if (isset($context[$property])) {
+ if (array_key_exists($property, $context)) {
$this->{$property} = $context[$property];
} else {
throw new \BadMethodCallException('Invalid context, "' . $property . '" options not set');