summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_encryption/lib/session.php6
-rw-r--r--apps/files_encryption/lib/stream.php2
2 files changed, 5 insertions, 3 deletions
diff --git a/apps/files_encryption/lib/session.php b/apps/files_encryption/lib/session.php
index bda22ee3a03..769a40b359f 100644
--- a/apps/files_encryption/lib/session.php
+++ b/apps/files_encryption/lib/session.php
@@ -70,9 +70,11 @@ class Session {
*/
public function setLegacyKey( $legacyKey ) {
- $_SESSION['legacyKey'] = $legacyKey;
+ if ( $_SESSION['legacyKey'] = $legacyKey ) {
- return true;
+ return true;
+
+ }
}
diff --git a/apps/files_encryption/lib/stream.php b/apps/files_encryption/lib/stream.php
index 4102a681d7f..d4b993b4c06 100644
--- a/apps/files_encryption/lib/stream.php
+++ b/apps/files_encryption/lib/stream.php
@@ -347,7 +347,7 @@ class Stream {
//
// // Make sure we always start on a block start
if ( 0 != ( $pointer % 8192 ) ) {
- // if the current positoin of
+ // if the current position of
// file indicator is not aligned to a 8192 byte block, fix it
// so that it is