summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorSam Tuke <samtuke@owncloud.com>2013-02-05 17:28:26 +0000
committerSam Tuke <samtuke@owncloud.com>2013-02-05 17:28:26 +0000
commit20b1d12cbfc65b604acdaac84272f6af8b0d7be4 (patch)
treef0b05dc50cbd4f8c5639444cea7e3a9ffd6f7630 /apps
parent4ba0ab7f65160661201b1d925cec9d29b47cab09 (diff)
downloadnextcloud-server-20b1d12cbfc65b604acdaac84272f6af8b0d7be4.tar.gz
nextcloud-server-20b1d12cbfc65b604acdaac84272f6af8b0d7be4.zip
Fixed comment typo, wrapped return value conditional on var assignment in session{}
Diffstat (limited to 'apps')
-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